Search found 5 matches

by steventhai
Fri May 12, 2017 10:11 pm
Forum: Volume 101 (10100-10199)
Topic: 10141 - Request for Proposal
Replies: 44
Views: 15828

Re: 10141 - Request for Proposal

Hi all, I am getting WA, but I checked my input with uDebug; and it passes. import java.io.FileInputStream; import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; import java.util.HashSet; import java.util.List; import java.util.Map; import java.util.Scanner; import java...
by steventhai
Thu May 11, 2017 8:59 pm
Forum: Volume 117 (11700-11799)
Topic: 11799 - Horror Dash
Replies: 13
Views: 4881

Re: 11799 - Horror Dash

Hello all, I don't know why my code get RTE. It's really weird. Please help: import java.util.Scanner; /** * 11799 - Horror Dash */ class HorrorDash { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int t = scanner.nextInt(); int c = 1; while(t-- > 0) { int n = sc...
by steventhai
Thu May 11, 2017 8:58 pm
Forum: Volume 101 (10100-10199)
Topic: 10114 - Loansome Car Buyer
Replies: 38
Views: 13460

Re: 10114 - Loansome Car Buyer

Nvm. I found the issue. I should always use Main as the class name.
by steventhai
Thu May 11, 2017 8:37 pm
Forum: Volume 117 (11700-11799)
Topic: 11799 - Horror Dash
Replies: 13
Views: 4881

Re: 11799 - Horror Dash

Hello all, I don't know why my code get RTE. It's really weird. Please help: import java.util.Scanner; /** * 11799 - Horror Dash */ class HorrorDash { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int t = scanner.nextInt(); int c = 1; while(t-- > 0) { int n = sca...
by steventhai
Thu May 11, 2017 7:57 pm
Forum: Volume 101 (10100-10199)
Topic: 10114 - Loansome Car Buyer
Replies: 38
Views: 13460

Re: 10114 - Loansome Car Buyer

Hello all,

I tried brianfry713 inputs, and it passed, but my program kept getting RTE. Please help.

Link: http://ideone.com/NiZDK6

Thanks.

Go to advanced search