Search found 3 matches

by vencentd
Sun Jun 01, 2008 6:40 pm
Forum: Bugs and suggestions
Topic: 511 - Do You Know the Way to San Jose? - Do nothing AC
Replies: 62
Views: 11195

Re: 200(Run Time Error)

i also get the running error ,and the code work well in my test case!can someone give me some test case ,or point out where is the bug in my code.
#include<stdio.h>
#include<string.h>
int main(void){
char array[2000][100];
int i,k,j,min,max,count;
int matrix[300][300];
i=0;
while(fgets(array[i ...
by vencentd
Thu May 29, 2008 9:17 pm
Forum: Bugs and suggestions
Topic: 511 - Do You Know the Way to San Jose? - Do nothing AC
Replies: 62
Views: 11195

help !!200 running time error

help ,i do not konw what is wrong.
#include<stdio.h>
#include<string.h>
int main(void){
char array[2000][25];
int i,k,j,min,max,count;
int matrix[127][127];
i=0;
memset(array[i],'\0',21);
while(fgets(array[i],21,stdin)){
array[i][strlen(array[i])-1]='\0';
/* if(strcmp(array[i],"#")==0 ...
by vencentd
Sun May 25, 2008 6:34 pm
Forum: Volume 1 (100-199)
Topic: 100 - The 3n + 1 problem
Replies: 1394
Views: 320024

Re: If you get WA in problem 100, read me before post!

HELP!!!WHY i always get Running time error ,but it is OK in my computer--i even test the case : 1 50000 and
50000 1.
,here is my code:
#include<stdio.h>
int analysis(char* string, int* infor);
int main(void){
int store[100100];
int i,k;
int c=0;
int count=0;
int input[2];
int array[100100 ...

Go to advanced search