Search found 10 matches
- Wed Dec 10, 2014 5:41 pm
- Forum: Volume 102 (10200-10299)
- Topic: 10279 - Mine Sweeper
- Replies: 102
- Views: 43126
Re: 10279 - Mine Sweeper
Thanks Brainfry and Lighted. U guys helped me and now i got AC. Thanks so much
- Wed Dec 10, 2014 4:48 pm
- Forum: Volume 102 (10200-10299)
- Topic: 10279 - Mine Sweeper
- Replies: 102
- Views: 43126
Re: 10279 - Mine Sweeper
Code: Select all
if(check)
printf("\n");
check = true;
- Wed Dec 10, 2014 3:55 pm
- Forum: Volume 102 (10200-10299)
- Topic: 10279 - Mine Sweeper
- Replies: 102
- Views: 43126
Re: 10279 - Mine Sweeper
Code: Select all
AC
- Tue Dec 09, 2014 6:43 pm
- Forum: Volume 102 (10200-10299)
- Topic: 10279 - Mine Sweeper
- Replies: 102
- Views: 43126
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
- Mon Dec 08, 2014 5:34 pm
- Forum: Volume 102 (10200-10299)
- Topic: 10279 - Mine Sweeper
- Replies: 102
- Views: 43126
Re: 10279 - Mine Sweeper
Code: Select all
AC
- Mon Dec 01, 2014 7:26 pm
- Forum: Volume 5 (500-599)
- Topic: 555 - Bridge Hands
- Replies: 12
- Views: 6480
Re: 555 - Bridge Hands
I got AC Thanks all .
- Mon Dec 01, 2014 6:05 pm
- Forum: Volume 5 (500-599)
- Topic: 555 - Bridge Hands
- Replies: 12
- Views: 6480
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 ...
#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 ...
- Sat Nov 22, 2014 6:14 pm
- Forum: Volume 109 (10900-10999)
- Topic: 10919 - Prerequisites?
- Replies: 10
- Views: 8580
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 ...
#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 ...
- Fri Nov 21, 2014 12:26 pm
- Forum: Volume 1 (100-199)
- Topic: 119 - Greedy Gift Givers
- Replies: 145
- Views: 47241
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.
- Fri Nov 21, 2014 9:24 am
- Forum: Volume 1 (100-199)
- Topic: 119 - Greedy Gift Givers
- Replies: 145
- Views: 47241
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 ...
#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 ...