Search found 2 matches

by joshua.bender
Fri Sep 18, 2009 9:10 am
Forum: Volume 114 (11400-11499)
Topic: 11462 - Age Sort
Replies: 49
Views: 18063

Re: 11462 - Ages Sort

I use the merge sort function in java but still got TLE. Please help me. import java.util.*; import java.io.*; public class Main { public static void main(String args[]) throws IOException { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); while (true) { String tc = read...
by joshua.bender
Thu Sep 03, 2009 2:34 am
Forum: Volume 100 (10000-10099)
Topic: 10055 - Hashmat the Brave Warrior
Replies: 166
Views: 45919

Re: 10055 - Hashmat the Brave Warrior

Can anybody help me what is wrong? i got the Wrong answer from the judge. import java.util.*; public class Main { public static void main(String args[]) { long x, y; Scanner scan = new Scanner(System.in); String line = scan.nextLine(); Scanner scan2 = new Scanner(line); scan2.useDelimiter(" "); x = ...

Go to advanced search