This is my code!!
who can tell me why get runtime error!!!
thanks
#include<stdio.h>
#include<string.h>
#include<ctype.h>
char word[1000],key[50][100],re[50][100],ans[50][100],*p;
void clear()
{
int i,j;
for(i=0;i<=50;i++)
for(j=0;j<=100;j++)
ans [j]=re [j]=key [j]='\0';
}
int restore(int j ...
Search found 7 matches
- Thu Jul 29, 2004 6:56 am
- Forum: Volume 4 (400-499)
- Topic: 409 - Excuses, Excuses!
- Replies: 63
- Views: 17556
- Tue Jul 27, 2004 8:20 am
- Forum: Volume 102 (10200-10299)
- Topic: 10298 - Power Strings
- Replies: 31
- Views: 19271
10298
who can me why time limiit exceed!!!
#include<stdio.h>
#include<string.h>
void main()
{
char ch[1000001];
int in,len,i,j,sum,sum1,ans,count,h;
while(scanf("%s",ch)==1)
{
h=count=sum=sum1=0;
len=strlen(ch);
if(ch[0]=='.')
break;
for(i=1;i<=len;i++)
{
h=sum1=count=0;
sum+=ch[i-1]-'0';
j ...
#include<stdio.h>
#include<string.h>
void main()
{
char ch[1000001];
int in,len,i,j,sum,sum1,ans,count,h;
while(scanf("%s",ch)==1)
{
h=count=sum=sum1=0;
len=strlen(ch);
if(ch[0]=='.')
break;
for(i=1;i<=len;i++)
{
h=sum1=count=0;
sum+=ch[i-1]-'0';
j ...
- Mon Jul 12, 2004 4:44 am
- Forum: Volume 105 (10500-10599)
- Topic: 10591 - Happy Number
- Replies: 61
- Views: 30979
- Sun Jul 11, 2004 3:05 pm
- Forum: Volume 105 (10500-10599)
- Topic: 10591 - Happy Number
- Replies: 61
- Views: 30979
10591(wrong answer)
who can tell me what's wrong???
special input or output!!!
thanks
special input or output!!!
thanks
- Sat Jun 05, 2004 6:07 am
- Forum: Volume 104 (10400-10499)
- Topic: 10473 - Simple Base Conversion
- Replies: 46
- Views: 21137
10473 wrong answer!!!
This ia my code!!
Can anyone tell me what wong with my code!!
thank you!!
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<math.h>
void main()
{
long int v,i;
double count,m,z;
char tran[12];
while(gets(tran))
{
z=count=v=0;
if(!strcmp(tran,"-1"))
break;
if(tran[0]=='0 ...
Can anyone tell me what wong with my code!!
thank you!!
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<math.h>
void main()
{
long int v,i;
double count,m,z;
char tran[12];
while(gets(tran))
{
z=count=v=0;
if(!strcmp(tran,"-1"))
break;
if(tran[0]=='0 ...
- Sat Jan 31, 2004 1:09 pm
- Forum: Volume 6 (600-699)
- Topic: 623 - 500!
- Replies: 187
- Views: 71545
- Sat Jan 31, 2004 1:05 pm
- Forum: Volume 6 (600-699)
- Topic: 623 - 500!
- Replies: 187
- Views: 71545
623 TLE !!!! Help PLZ!!!!
help!!!
TLE!!!!
who can tell me why TLE????
thank you!!
this is my code
/* @JUDGE_ID: ******* 623 C++ */
#include<string.h>
#include<stdio.h>
long int in,i,k,j=0,x;
long int num[2600];
void clearzero()
{
num[0]=1;
for(i=1;i<=2600;i++)
num =0;
}
int cal(int af)
{
for(i=0;i<=j;i++)
{
if(num !=0 ...
TLE!!!!
who can tell me why TLE????
thank you!!
this is my code
/* @JUDGE_ID: ******* 623 C++ */
#include<string.h>
#include<stdio.h>
long int in,i,k,j=0,x;
long int num[2600];
void clearzero()
{
num[0]=1;
for(i=1;i<=2600;i++)
num =0;
}
int cal(int af)
{
for(i=0;i<=j;i++)
{
if(num !=0 ...