Search found 14 matches

by Mrsuit
Fri Jun 20, 2014 11:38 pm
Forum: Volume 106 (10600-10699)
Topic: 10653 - Bombs! NO they are Mines!!
Replies: 36
Views: 18010

Re: 10653 - Bombs! NO they are Mines!!

Tried several input and i'm getting WA. Please help! import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.Arrays; import java.util.LinkedList; import java.util.Queue; import java.util.Stack; public class Main { publ...
by Mrsuit
Wed May 21, 2014 9:46 pm
Forum: Volume 12 (1200-1299)
Topic: 1225 - Digit Counting
Replies: 17
Views: 4345

Re: 1225 - Digit Counting

brianfry713 wrote:For the sample input, you're printing:
011100000
162211111
Instead of:
0 1 1 1 0 0 0 0 0 0
1 6 2 2 1 1 1 1 1 1
I already fixed it, and got AC. Thank you!.
by Mrsuit
Wed May 21, 2014 6:07 am
Forum: Volume 110 (11000-11099)
Topic: 11057 - Exact Sum
Replies: 50
Views: 21104

Re: 11057 - Exact Sum

brianfry713 wrote:After each test case (including the last one) you must print a blank line.

Lol, finally got AC, thank you so much! :)
by Mrsuit
Wed May 21, 2014 6:02 am
Forum: Volume 12 (1200-1299)
Topic: 1225 - Digit Counting
Replies: 17
Views: 4345

Re: 1225 - Digit Counting

Post your code import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Arrays; public class Main { public static void main(String[] args) throws NumberFormatException, IOException { BufferedReader bf = new BufferedReader(new InputStreamReader(Sy...
by Mrsuit
Wed May 21, 2014 5:59 am
Forum: Volume 119 (11900-11999)
Topic: 11995 - I Can Guess the Data Structure!
Replies: 60
Views: 6860

Re: 11995 - I Can Guess the Data Structure!

Post the code you'd submit. On the sample input you're printing 1's and 2's. import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Arrays; import java.util.Collections; import java.util.HashSet; import java.util.LinkedList; import java.util.Pr...
by Mrsuit
Sat May 17, 2014 9:28 pm
Forum: Volume 110 (11000-11099)
Topic: 11057 - Exact Sum
Replies: 50
Views: 21104

Re: 11057 - Exact Sum

That code doesn't compile: Main.java:66: error: cannot find symbol pp.clear(); ^ symbol: variable pp location: class Main 1 error You're also missing the . at the end of each line. I fixed thoses things, but i'm still getting WA. import java.io.BufferedReader; import java.io.IOException; import jav...
by Mrsuit
Sat May 17, 2014 9:00 pm
Forum: Volume 119 (11900-11999)
Topic: 11995 - I Can Guess the Data Structure!
Replies: 60
Views: 6860

Re: 11995 - I Can Guess the Data Structure!

brianfry713 wrote:use class Main
Sorry, i just forgot to change the class here, but i tried with class Main and i got WA. Do you see any mistake on my code besides that class thing?. Thanks
by Mrsuit
Sat May 17, 2014 8:59 pm
Forum: Volume 102 (10200-10299)
Topic: 10226 - Hardwood Species
Replies: 121
Views: 37902

Re: 10226 - Hardwood Species submission error?

Anyone help me pls, i'm getting runtime error. Btw, i know my code isn't right, i mean, only one point of it As a new poster here's some points you may want to keep in mind: (1) Spend some time reading the thread you're posting to. This is a place that people have come to when they've had issues wi...
by Mrsuit
Sat May 17, 2014 8:52 pm
Forum: Volume 12 (1200-1299)
Topic: 1225 - Digit Counting
Replies: 17
Views: 4345

Re: 1225 - Digit Counting

Hey, i have the same problem, first i got PE, then i fixed a little thing about the spaces, but now i got WA. And it's because that thing, when i put 9999 22 71 649 i got 2889 4000 4000 4000 4000 4000 4000 4000 4000 2 13 6 2 2 2 2 2 2 7 18 17 17 17 17 17 9 7 124 235 235 235 235 225 175 125 125 So, h...
by Mrsuit
Fri May 09, 2014 2:06 am
Forum: Volume 110 (11000-11099)
Topic: 11057 - Exact Sum
Replies: 50
Views: 21104

Re: 11057 - Exact Sum

I'm gettint WA, and it works for every input that i put. Thank you. import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Arrays; import java.util.Iterator; import java.util.PriorityQueue; import java.util.Queue; public class Main { public stat...
by Mrsuit
Thu May 08, 2014 8:08 am
Forum: Volume 119 (11900-11999)
Topic: 11995 - I Can Guess the Data Structure!
Replies: 60
Views: 6860

Re: 11995 - I Can Guess the Data Structure!

Like i said, i just made a little fix. Indeed i just added this : if (i==1){ if (Integer.parseInt(lista[0])==1){ System.out.println("not sure"); break; } else{ System.out.println("impossible"); break; } } "i" is the number of test cases. import java.io.BufferedReader; import java.io.IOException; imp...
by Mrsuit
Thu May 08, 2014 7:58 am
Forum: Volume 102 (10200-10299)
Topic: 10226 - Hardwood Species
Replies: 121
Views: 37902

Re: 10226 - Hardwood Species submission error?

Anyone help me pls, i'm getting runtime error. Btw, i know my code isn't right, i mean, only one point of it. When i have the input : 1 Ash It outputs Ash 100.0 and it should be Ash 100.0000 but i just don't know how to fix it yet. Anyway here is my code. import java.io.BufferedReader; import java.i...
by Mrsuit
Tue May 06, 2014 7:10 am
Forum: Volume 119 (11900-11999)
Topic: 11995 - I Can Guess the Data Structure!
Replies: 60
Views: 6860

Re: 11995 - I Can Guess the Data Structure!

I was reading about BufferedWriter and this thread when i saw little improvements for the other codes, so i first tried to improve mine by little changes and if none of these would work, i would finally use BufferedWriter. Here is the weird thing, i just added this simple line. ("i" is the first int...
by Mrsuit
Mon May 05, 2014 8:46 pm
Forum: Volume 119 (11900-11999)
Topic: 11995 - I Can Guess the Data Structure!
Replies: 60
Views: 6860

Re: 11995 - I Can Guess the Data Structure!

Hey, could anyone help me with my code? i'm getting time limit even when i made some fixes in order to make my code faster. import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Arrays; import java.util.Collections; import java.util.HashSet; im...

Go to advanced search