This is not a topic of Volume I. So you should submit this type of topics in Algorithm section.
...and if you want classified problems list, then go to: ShyGypsy / Igor’s Tools and use "Search query:" text box at top-left of the page.
This is a rich site for ACM solver. you can use other useful ...
Search found 17 matches
- Sat Apr 07, 2007 11:01 am
- Forum: General
- Topic: Plz give me some problems
- Replies: 3
- Views: 2879
- Tue Feb 13, 2007 1:47 pm
- Forum: Volume 101 (10100-10199)
- Topic: 10141 - Request for Proposal
- Replies: 44
- Views: 24453
- Tue Feb 13, 2007 1:08 pm
- Forum: Volume 101 (10100-10199)
- Topic: 10141 - Request for Proposal
- Replies: 44
- Views: 24453
- Thu Nov 16, 2006 12:34 pm
- Forum: Volume 103 (10300-10399)
- Topic: 10327 - Flip Sort
- Replies: 81
- Views: 36017
Rushow, you forgot the terms & conditions of the problem
only one operation ( Flip ) is available and that is you can exchange two adjacent terms
but your algorithm didn't perform like this.
think about second sample input-
2 3 1 in your algo, first interchange occurs between 2 and 1, but 2 and 1 ...
only one operation ( Flip ) is available and that is you can exchange two adjacent terms
but your algorithm didn't perform like this.
think about second sample input-
2 3 1 in your algo, first interchange occurs between 2 and 1, but 2 and 1 ...
- Tue Oct 17, 2006 11:13 am
- Forum: Volume 104 (10400-10499)
- Topic: 10424 - Love Calculator
- Replies: 137
- Views: 60495
- Sun Oct 15, 2006 9:58 am
- Forum: Volume 7 (700-799)
- Topic: 713 - Adding Reversed Numbers
- Replies: 142
- Views: 61412
- Sun Oct 15, 2006 9:01 am
- Forum: Volume 5 (500-599)
- Topic: 541 - Error Correction
- Replies: 27
- Views: 16993
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: 14035
- Wed Oct 11, 2006 9:07 am
- Forum: Volume 111 (11100-11199)
- Topic: 11111 - Generalized Matrioshkas
- Replies: 19
- Views: 14881
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: 14881
- Wed Oct 11, 2006 5:31 am
- Forum: Volume 111 (11100-11199)
- Topic: 11113 - Continuous Fractions
- Replies: 16
- Views: 14035
- Tue Oct 10, 2006 3:53 am
- Forum: Volume 111 (11100-11199)
- Topic: 11111 - Generalized Matrioshkas
- Replies: 19
- Views: 14881
- Tue Oct 10, 2006 3:43 am
- Forum: Volume 111 (11100-11199)
- Topic: 11113 - Continuous Fractions
- Replies: 16
- Views: 14035
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: 14881
- Sat Oct 07, 2006 12:19 pm
- Forum: Volume 101 (10100-10199)
- Topic: 10141 - Request for Proposal
- Replies: 44
- Views: 24453