Search found 5 matches
- Sat Jun 03, 2006 11:41 pm
- Forum: Volume 110 (11000-11099)
- Topic: 11035 - Card Hands
- Replies: 12
- Views: 6593
- Tue May 30, 2006 1:13 am
- Forum: Volume 110 (11000-11099)
- Topic: 11035 - Card Hands
- Replies: 12
- Views: 6593
- Tue May 30, 2006 12:13 am
- Forum: Volume 110 (11000-11099)
- Topic: 11035 - Card Hands
- Replies: 12
- Views: 6593
11035 - Card Hands
I get runtime error
for(i=0;i<n;i++)
{
fscanf(in,"%d",hands+i);
for(j=0;j<hands[i];j++)
{
fscanf(in,"%s",cstr);
cards[t++]=tonum(cstr);
}
}
is this a right way to read input
I checked "cstr" is some times more than 2 chars
is there problem with judge or with my code???
for(i=0;i<n;i++)
{
fscanf(in,"%d",hands+i);
for(j=0;j<hands[i];j++)
{
fscanf(in,"%s",cstr);
cards[t++]=tonum(cstr);
}
}
is this a right way to read input
I checked "cstr" is some times more than 2 chars
is there problem with judge or with my code???
- Wed Oct 05, 2005 8:10 pm
- Forum: Volume 101 (10100-10199)
- Topic: 10139 - Factovisors
- Replies: 80
- Views: 42121
Accepted
I just rewrote the code and I got Accepted thx anyway
- Wed Oct 05, 2005 12:47 pm
- Forum: Volume 101 (10100-10199)
- Topic: 10139 - Factovisors
- Replies: 80
- Views: 42121
10139 Factovisors WA plz help
#include<cstdio>
#include<string>
#include<cmath>
using namespace std;
//FILE *in=fopen("fact.in","r");
bool iscom[46502];
int prime[5000];
#ifdef __GNUC__
#define longlong long long
#else
#define longlong __int64
#endif
int howfac(longlong* n,int f)
{
//return how many factor F is in n
longlong ...
#include<string>
#include<cmath>
using namespace std;
//FILE *in=fopen("fact.in","r");
bool iscom[46502];
int prime[5000];
#ifdef __GNUC__
#define longlong long long
#else
#define longlong __int64
#endif
int howfac(longlong* n,int f)
{
//return how many factor F is in n
longlong ...