Search found 10 matches

by tidusleonart
Wed Dec 10, 2014 5:41 pm
Forum: Volume 102 (10200-10299)
Topic: 10279 - Mine Sweeper
Replies: 102
Views: 28163

Re: 10279 - Mine Sweeper

Thanks Brainfry and Lighted. U guys helped me and now i got AC. Thanks so much
by tidusleonart
Wed Dec 10, 2014 4:48 pm
Forum: Volume 102 (10200-10299)
Topic: 10279 - Mine Sweeper
Replies: 102
Views: 28163

Re: 10279 - Mine Sweeper

Code: Select all

 if(check)
         printf("\n");
      check = true;
yes i did. u can test my code with the input...i compare result with others too.. still WA
by tidusleonart
Wed Dec 10, 2014 3:55 pm
Forum: Volume 102 (10200-10299)
Topic: 10279 - Mine Sweeper
Replies: 102
Views: 28163

Re: 10279 - Mine Sweeper

Code: Select all

AC
I fixed the out of bound stuff but well still get WA, I have no idea . is there any critical test cases that i miss out? thanks
by tidusleonart
Tue Dec 09, 2014 6:43 pm
Forum: Volume 102 (10200-10299)
Topic: 10279 - Mine Sweeper
Replies: 102
Views: 28163

Re: 10279 - Mine Sweeper

u mean that i cant use the array as global and memset with 0 right? it will give incorrect answer? can u please explain a bit details ? Thanks
by tidusleonart
Mon Dec 08, 2014 5:34 pm
Forum: Volume 102 (10200-10299)
Topic: 10279 - Mine Sweeper
Replies: 102
Views: 28163

Re: 10279 - Mine Sweeper

Code: Select all

AC
Keep getting WA. Please help me. I print the exact format and everything. i dont kno why i still getting WA....Thanks in advance
by tidusleonart
Mon Dec 01, 2014 7:26 pm
Forum: Volume 5 (500-599)
Topic: 555 - Bridge Hands
Replies: 12
Views: 3852

Re: 555 - Bridge Hands

I got AC Thanks all .
by tidusleonart
Mon Dec 01, 2014 6:05 pm
Forum: Volume 5 (500-599)
Topic: 555 - Bridge Hands
Replies: 12
Views: 3852

Re: 555 - Bridge Hands

#include <iostream> #include <cstdio> #include <cstring> #include <string> #include <vector> #include <algorithm> using namespace std; char values[13][2] = {"2","3","4","5","6","7","8","9","T","J","Q","K","A"}; char suits[4][2] = {"C","D","S","H"}; typedef vector<int> vi; int valConv(char s) { swit...
by tidusleonart
Sat Nov 22, 2014 6:14 pm
Forum: Volume 109 (10900-10999)
Topic: 10919 - Prerequisites?
Replies: 10
Views: 6168

Re: 10919 - Prerequisites?

#include <iostream> #include <cstdio> #include <algorithm> #include <vector> using namespace std; typedef vector<int> vi; bool indexB(vi& a, int f) { int low = 0, high = a.size()-1, mid; while(low <= high) { mid = (low+high)/2; if(a[mid] == f) return true; if(a[mid] > f) high = mid-1; if(a[mid] < f...
by tidusleonart
Fri Nov 21, 2014 12:26 pm
Forum: Volume 1 (100-199)
Topic: 119 - Greedy Gift Givers
Replies: 145
Views: 25374

Re: 119 - Keep getting WA even though i test many many times

I'm sorry for posting into a new thread. But you solved my problem. Thanks a alot.
by tidusleonart
Fri Nov 21, 2014 9:24 am
Forum: Volume 1 (100-199)
Topic: 119 - Greedy Gift Givers
Replies: 145
Views: 25374

119 - Keep getting WA even though i test many many times

#include <iostream> #include <cstdio> #include <cstring> #include <string> #include <cstdlib> #include <vector> using namespace std; typedef vector<string> vs; int indexP(vs& a, string s) { for(int i =0; i < a.size(); i++) { if(a[i] == s) return i; } return -1; } int main() { //ios_base::sync_with_...

Go to advanced search