Search found 17 matches
- Sat Apr 07, 2007 11:01 am
- Forum: General
- Topic: Plz give me some problems
- Replies: 3
- Views: 2837
- Tue Feb 13, 2007 1:47 pm
- Forum: Volume 101 (10100-10199)
- Topic: 10141 - Request for Proposal
- Replies: 44
- Views: 22774
- Tue Feb 13, 2007 1:08 pm
- Forum: Volume 101 (10100-10199)
- Topic: 10141 - Request for Proposal
- Replies: 44
- Views: 22774
- Thu Nov 16, 2006 12:34 pm
- Forum: Volume 103 (10300-10399)
- Topic: 10327 - Flip Sort
- Replies: 81
- Views: 33388
- Tue Oct 17, 2006 11:13 am
- Forum: Volume 104 (10400-10499)
- Topic: 10424 - Love Calculator
- Replies: 137
- Views: 57369
- Sun Oct 15, 2006 9:58 am
- Forum: Volume 7 (700-799)
- Topic: 713 - Adding Reversed Numbers
- Replies: 142
- Views: 58263
the problem description mentioned Numbers will be at most 200 characters long. and also the number may contain leading zeroes. 03425 3455 i solved by this way- input in a string normally we add two number right to left. here add left to right. as a result this add reversely. the number may contain l...
- Sun Oct 15, 2006 9:01 am
- Forum: Volume 5 (500-599)
- Topic: 541 - Error Correction
- Replies: 27
- Views: 15962
the mistake is
so place the initialization here.
Be careful about initialization error.
you need to initialize er,ec for every input set.int i,j,n,m,er=0,row,col,ec=0;
so place the initialization here.
Code: Select all
while(scanf("%d",&n))
{
if(n==0)
break;
er=ec=0;
.........
- Wed Oct 11, 2006 9:08 am
- Forum: Volume 111 (11100-11199)
- Topic: 11113 - Continuous Fractions
- Replies: 16
- Views: 13794
- Wed Oct 11, 2006 9:07 am
- Forum: Volume 111 (11100-11199)
- Topic: 11111 - Generalized Matrioshkas
- Replies: 19
- Views: 13867
Obviously
(from my ac code)
Code: Select all
:-) Matrioshka!
- Wed Oct 11, 2006 8:31 am
- Forum: Volume 111 (11100-11199)
- Topic: 11111 - Generalized Matrioshkas
- Replies: 19
- Views: 13867
- Wed Oct 11, 2006 5:31 am
- Forum: Volume 111 (11100-11199)
- Topic: 11113 - Continuous Fractions
- Replies: 16
- Views: 13794
Wow! though this is a big mistake, but not all. the highest input is less than 10^20 i.e 99,999,999,999,999,999,999 [20 digit]. but unsigned long long can hold only (2^64)-1=18446744073709551615 [20 digit]. but less than the 81553255926290448384 from the highest input. so, if the input is 9999999999...
- Tue Oct 10, 2006 3:53 am
- Forum: Volume 111 (11100-11199)
- Topic: 11111 - Generalized Matrioshkas
- Replies: 19
- Views: 13867
- Tue Oct 10, 2006 3:43 am
- Forum: Volume 111 (11100-11199)
- Topic: 11113 - Continuous Fractions
- Replies: 16
- Views: 13794
11113 - Continuous Fractions
For this problem, I used
- Mon Oct 09, 2006 12:24 pm
- Forum: Volume 111 (11100-11199)
- Topic: 11111 - Generalized Matrioshkas
- Replies: 19
- Views: 13867
To clear more , consider the following input: -10 -8 8 -5 5 10 this is a invalid input; -8 8 -5 5 is surrounded by -10 10 and 8+5=13 sized box cannot be allocated in a 10 sized box. but above input can be validated in this way- -10 -8 -5 5 8 10 Now it is possible. because, if the 5 sized box is plac...
- Sat Oct 07, 2006 12:19 pm
- Forum: Volume 101 (10100-10199)
- Topic: 10141 - Request for Proposal
- Replies: 44
- Views: 22774