Search found 5 matches
- Sun Mar 25, 2007 2:32 pm
- Forum: Volume 7 (700-799)
- Topic: 706 - LCD Display
- Replies: 221
- Views: 60112
- Wed Mar 21, 2007 2:42 pm
- Forum: Volume 100 (10000-10099)
- Topic: 10033 - Interpreter
- Replies: 88
- Views: 36526
- Tue Mar 20, 2007 4:35 pm
- Forum: Volume 100 (10000-10099)
- Topic: 10033 - Interpreter
- Replies: 88
- Views: 36526
- 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...
- 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...