About 841,000 results
Open links in new tab
  1. java - An Optimized solution for ShoeMaker's Prob - Stack Overflow

    My solution in java is as follows: Scanner sc= new Scanner(System.in); int numOfElements=sc.nextInt(); Order[] orders= new Order[numOfElements]; for(int i=0;i<numOfElements;i++) Order o=new Order(); o.time=sc.nextInt(); o.fine=sc.nextInt(); o.index=i+1; orders[i]=o; Arrays.sort(orders); for(Order o:orders) System.out.println(o.index);

  2. UVA/10026 -Shoemaker's Problem.java at master - GitHub

    import java.io.*; import java.math.BigInteger; import java.util.*; public class Main { public static void main (String [] args) throws IOException { BufferedReader br = new BufferedReader (new InputStreamReader (System.in)); int t = Integer.parseInt (br.readLine ()); PrintWriter out = new PrintWriter (System.out); boolean first = true; while (t ...

  3. uva-onlinejudge-solutions/10026 - Shoemaker's Problem/README ... - GitHub

    Your task is to help the shoemaker, writing a programm to find the sequence of jobs with minimal total fine. The input begins with a single positive integer on a line by itself indicating the number of the cases following, each of them as described below.

  4. UVa 10026 - Shoemaker's Problem - Algorithmist

    May 4, 2023 · We must help the shoemaker minimize the amount of fines that he must pay by finding the optimal order in which to make the shoes. In the case of ties, we should output the lexicographically smallest permutation corresponding to the order of the jobs.

  5. UVA Online Judge solution - 10026 - Shoemaker's Problem

    For each day of delay before starting to work for the i-th job, shoemaker must pay a fine of Si (1 ≤ Si ≤ 10000) cents. Your task is to help the shoemaker, writing a programm to find the sequence of jobs with minimal total fine.

  6. UVa 10026 - Shoemaker's Problem - Programmer Sought

    Your task is to help the shoemaker, writing a programm to find the sequence of jobs with minimal total fine. The input begins with a single positive integer on a line by itself indicating the number of the cases following, each of them as described below.

  7. a bit of greedy: UVa 10026 - Shoemaker's Problem - Blogger

    Sep 20, 2014 · Problem Statement: UVa 10026 - Shoemaker's Problem Summary: Given a list of jobs, we can only work on one job each day. Each job i i takes ti t i days to complete and for …

  8. Shoemaker’s problem Shoemaker has N jobs (orders from customers) which he must make. Shoemaker can work on only one job in each day. For each i-th job, it is known the integer Ti (1 Ti 1000), the time in days it takes the shoemaker to finish the job. For each day of delay before starting to work for the i-th job, shoemaker must pay a …

  9. UVA/King/10026 Shoemaker's Problem.java at master - GitHub

    A code backup for answers of UVA. Contribute to PuzzlesLab/UVA development by creating an account on GitHub.

  10. Coding-Problems-Solved/ShoemakersProblem.java at master

    import java.io.*; import java.util.*; public class ShoemakersProblem { static int count = 0; static void mergeSort (TimeandFine A [], int p, int r) { if (p<r) { int q = (p+r)/2; mergeSort (A,p,q); …

  11. Some results have been removed