Search found 5 matches
- Wed Feb 12, 2003 11:25 am
- Forum: Volume 1 (100-199)
- Topic: 101 - The Blocks Problem
- Replies: 635
- Views: 56442
Need test cases for 101
Could any one post some test cases for 101?
- Tue Jan 21, 2003 5:31 pm
- Forum: Volume 100 (10000-10099)
- Topic: 10025 - The ? 1 ? 2 ? ... ? n = k problem
- Replies: 42
- Views: 12831
[cpp] #include <iostream.h> #include <stdio.h> void main(void){ long number,i,base,different,state,times,k; i=0; base=0; state=0; cin>>times; cout<<endl; for (k=0;k<times;k++) { cin>>number; if (number < 0) number=-number; while(1) { i++; base+=i; if (base>=number) { different=base-number; if ((diff...
- Mon Jan 20, 2003 3:15 pm
- Forum: Volume 100 (10000-10099)
- Topic: 10025 - The ? 1 ? 2 ? ... ? n = k problem
- Replies: 42
- Views: 12831
10025
[cpp] #include <iostream.h> #include <stdio.h> void main(void){ int number,i,base,different,state; while(1) { i=0; base=0; state=0; cin>>number; if (feof(stdin)) break; if (number < 0) number=-number; while(1) { i++; base+=i; if (base>=number) { different=base-number; if ((different==0)||(different ...
- Sun Nov 03, 2002 5:19 am
- Forum: Volume 1 (100-199)
- Topic: 101 - The Blocks Problem
- Replies: 635
- Views: 56442
RUN time error of 101?
why? [c]/* @JUDGE_ID: 25258FM 101 C "AI??" */ #include <stdio.h> int block[25][25]; char input[100]; char cur_char,dummy; void CutCommand(); int max,command1; int command2; int com_num1,com_num2; int timeofcleantop; void progress11(); void progress12(); void progress22(); void progress21()...
- Fri Nov 01, 2002 12:19 pm
- Forum: Volume 1 (100-199)
- Topic: 100 - The 3n + 1 problem
- Replies: 1394
- Views: 213438
problem 100..
why my C program is exceding time limit.... but using the same concept , my friend write in C++. he do not. mine: [c]/* @JUDGE_ID: XXXXXX 100 C */ #include <stdio.h> int calc( unsigned int); unsigned int i; int main(void) { unsigned int input_1,input_2,k,first,second,no1,max; do { scanf("%u&quo...