Search found 5 matches

by MEGADEEN
Sun Jun 29, 2014 8:54 am
Forum: Volume 1 (100-199)
Topic: 161 - Traffic Lights
Replies: 28
Views: 3919

Re: P161 - Traffic Lights - Test Data

lbv wrote:
MEGADEEN wrote:I tested my program with the test cases mentioned previously and mine seem to be correct but I keep on getting WA. Can someone please help me?
Try:

Input

Code: Select all

68 36 31 69 67 62 35 35 43 37 30 0
0 0 0
Output

Code: Select all

05:00:00
Thank you! That solved the problem.
by MEGADEEN
Sat Jun 28, 2014 12:44 pm
Forum: Volume 1 (100-199)
Topic: 161 - Traffic Lights
Replies: 28
Views: 3919

Re: P161 - Traffic Lights - Test Data

I tested my program with the test cases mentioned previously and mine seem to be correct but I keep on getting WA. Can someone please help me?

Code: Select all

My code got accepted.
by MEGADEEN
Fri Jun 27, 2014 5:03 pm
Forum: Volume 4 (400-499)
Topic: 454 - Anagrams
Replies: 97
Views: 20875

Re: 454 Anagrams WA

I spotted my mistake after analyzing several test cases. The reason is that I was grouping together anagrams which is not correct.
by MEGADEEN
Thu Jun 26, 2014 11:14 am
Forum: Volume 4 (400-499)
Topic: 454 - Anagrams
Replies: 97
Views: 20875

Re: 454 Anagrams WA

After 3 attempts and 1 rewrite, my program still get WA. Help me please. #include <algorithm> #include <iostream> #include <fstream> #include <cctype> using namespace std; struct word{ string wrd; string stripped; void strip() { stripped = ""; for (int i = 0; i < wrd.length(); ++i) { if (isspace((in...
by MEGADEEN
Sun Jun 15, 2014 9:33 am
Forum: Volume 104 (10400-10499)
Topic: 10443 - Rock
Replies: 26
Views: 3745

10443 - Rock

I tried testing my code with self-created test cases and it seems to work fine but I keep on getting WA. What is wrong with my code? Thank you for helping. #include <iostream> using namespace std; int r, c, n; char original[101][101], duplicate[101][101]; bool winner(char y, char x) { if (x == 'R' &...

Go to advanced search