I think you are not evaluating all the possible sums involving the elements of the sequence, so you need to change the algo. Try this input:
4
1 3 5 8
Your output is:
Case #1: 1 3 5 8
This is an A-sequence.
And should be:
Case #1: 1 3 5 8
This is not an A-sequence.
Search found 23 matches
- Tue Feb 07, 2006 6:19 pm
- Forum: Volume 109 (10900-10999)
- Topic: 10930 - A-Sequence
- Replies: 102
- Views: 62420
- Wed Nov 09, 2005 6:58 pm
- Forum: Volume 109 (10900-10999)
- Topic: 10930 - A-Sequence
- Replies: 102
- Views: 62420
- Fri Sep 03, 2004 3:46 pm
- Forum: Volume 106 (10600-10699)
- Topic: 10697 - Firemen barracks
- Replies: 45
- Views: 20170
- Thu Sep 02, 2004 7:42 pm
- Forum: Volume 106 (10600-10699)
- Topic: 10697 - Firemen barracks
- Replies: 45
- Views: 20170
- Thu Sep 02, 2004 3:49 pm
- Forum: Volume 106 (10600-10699)
- Topic: 10697 - Firemen barracks
- Replies: 45
- Views: 20170
- Thu Sep 02, 2004 3:12 pm
- Forum: Volume 106 (10600-10699)
- Topic: 10697 - Firemen barracks
- Replies: 45
- Views: 20170
- Thu Sep 02, 2004 2:56 pm
- Forum: Volume 106 (10600-10699)
- Topic: 10697 - Firemen barracks
- Replies: 45
- Views: 20170
- Thu Sep 02, 2004 1:42 pm
- Forum: Volume 106 (10600-10699)
- Topic: 10697 - Firemen barracks
- Replies: 45
- Views: 20170
- Wed Sep 01, 2004 9:51 pm
- Forum: Volume 106 (10600-10699)
- Topic: 10697 - Firemen barracks
- Replies: 45
- Views: 20170
- Fri Aug 27, 2004 8:43 pm
- Forum: Volume 106 (10600-10699)
- Topic: 10697 - Firemen barracks
- Replies: 45
- Views: 20170
- Mon Jul 19, 2004 3:28 pm
- Forum: Volume 106 (10600-10699)
- Topic: 10681 - Teobaldo's Trip
- Replies: 44
- Views: 18704
- Tue Jan 13, 2004 11:01 pm
- Forum: Volume 3 (300-399)
- Topic: 347 - Run
- Replies: 20
- Views: 9503
Re: please help me
I didn't get accepted, but I think the bigger runaround number is 9682415. Am I correct??
- Tue Nov 04, 2003 3:50 pm
- Forum: Volume 100 (10000-10099)
- Topic: 10061 - How many zero's and how many digits ?
- Replies: 43
- Views: 28824
Re: 10061 WA
Hi, mido!
I think your mistake is when you are trying to find how many trailing zeros the factorial has in the base b, the other part is ok :)
Try this:
Input
1000000 798
1000000 799
Output
55553 1917886
21737 1917527
Your program's output was different of the my accept's problem output. Try to ...
I think your mistake is when you are trying to find how many trailing zeros the factorial has in the base b, the other part is ok :)
Try this:
Input
1000000 798
1000000 799
Output
55553 1917886
21737 1917527
Your program's output was different of the my accept's problem output. Try to ...
- Wed Sep 03, 2003 12:57 pm
- Forum: Volume 103 (10300-10399)
- Topic: 10330 - Power Transmission
- Replies: 43
- Views: 21601
- Wed Sep 03, 2003 2:14 am
- Forum: Volume 103 (10300-10399)
- Topic: 10330 - Power Transmission
- Replies: 43
- Views: 21601
10330 - WA
Hi!
I am trying solve the problem 10330, but I only get Wrong Anser :(
So, I decide to request some help.
I have this input
4
10 20 30 40
6
1 2 5
1 3 10
1 4 13
2 3 5
2 4 7
3 4 20
3 1
1 2 3 4
2
50 100
1
1 2 100
1 1
1 2
8
100 100 100 100 100 100 100 100
12
1 2 5
1 3 7
1 4 6
2 5 4
2 6 3
3 6 4
3 7 1 ...
I am trying solve the problem 10330, but I only get Wrong Anser :(
So, I decide to request some help.
I have this input
4
10 20 30 40
6
1 2 5
1 3 10
1 4 13
2 3 5
2 4 7
3 4 20
3 1
1 2 3 4
2
50 100
1
1 2 100
1 1
1 2
8
100 100 100 100 100 100 100 100
12
1 2 5
1 3 7
1 4 6
2 5 4
2 6 3
3 6 4
3 7 1 ...