Search found 5 matches

by Q.Qnick
Sun Mar 25, 2007 2:32 pm
Forum: Volume 7 (700-799)
Topic: 706 - LCD Display
Replies: 221
Views: 60112

how about me i get a Presentation Error !! i don't know how to solve that kind error here is my code: #include<stdio.h> #include<string.h> int i,j,k; int s,cnt,c=0; char a[1000000]; main(){ while(scanf("%d %s",&s,&a)==2){ if(c!=0){ printf("\n"); } c++; cnt=strlen(a); for(...
by Q.Qnick
Wed Mar 21, 2007 2:42 pm
Forum: Volume 100 (10000-10099)
Topic: 10033 - Interpreter
Replies: 88
Views: 36526

i do some change , but it isn't work . can some one let me know where is the plb. thx a lot . #include<stdio.h> int s,i,j,k; int RAM[1000][3],REG[10]={0},ans; char save[6]; main(int argc,char *argv[]){ /*FILE *fp; fp=fopen(argv[1],"r");*/ fscanf(stdin,"%d\n",&s); /*printf(&qu...
by Q.Qnick
Tue Mar 20, 2007 4:35 pm
Forum: Volume 100 (10000-10099)
Topic: 10033 - Interpreter
Replies: 88
Views: 36526

some body help me T.T
by Q.Qnick
Tue Mar 20, 2007 3:23 pm
Forum: Volume 100 (10000-10099)
Topic: 10033 - Interpreter
Replies: 88
Views: 36526

10033

here is my code how can i solve the problem of time limit #include<stdio.h> int s,i,j; int RAM[20][3],REG[10],ans; char save[6]; main(){ scanf("%d\n",&s); j=0; for(i=0;i<s;i++){ j=0; while(gets(save)){ if(!save[0])break; if(save[0]=='0'&& save[1]=='0' &&save[2]=='0') br...
by Q.Qnick
Tue Mar 13, 2007 1:06 pm
Forum: Volume 1 (100-199)
Topic: 102 - Ecological Bin Packing
Replies: 485
Views: 106313

102 what's wrong with my code

i have tried 2 input such as 1 2 3 4 5 6 7 8 9 and 5 10 5 20 10 5 10 20 10 ,and it works. so i don't kown why online-judge didn't accept there is my code #include<stdio.h> #include<stdlib.h> long int save=0,lo,i=9;j=0,totle=0,k=0,po,l,SAVE; long int *a,*b,*c; main(){ a=(int*)malloc(sizeof(int)*9); b...

Go to advanced search