It seems that some trees have 1000 or more nodes in the input of the Judge.
So, you should enlarge the size of the arrays, s[1000] and sum[100].
Search found 15 matches
- Fri Apr 08, 2005 2:06 pm
- Forum: Volume 1 (100-199)
- Topic: 112 - Tree Summing
- Replies: 137
- Views: 32264
- Mon Mar 28, 2005 10:45 am
- Forum: Volume 1 (100-199)
- Topic: 143 - Orchard Trees
- Replies: 90
- Views: 26920
Code: Select all
71.67 88.3 45.02 49.09 98.49 0.1 ;;line 10
Code: Select all
1701
- Sun Mar 06, 2005 1:12 pm
- Forum: Volume 1 (100-199)
- Topic: 112 - Tree Summing
- Replies: 137
- Views: 32264
doddi, you maybe misunderstand the problem.
xbeanx's output is correct, since there is only one root-to-leaf path, 77 + 1.
another input for your help:
my output:
xbeanx's output is correct, since there is only one root-to-leaf path, 77 + 1.
another input for your help:
Code: Select all
77 (77(1()())())
77 (77 (1 () ()) (0 () ()) )
77 (77 () ())
Code: Select all
no
yes
yes
- Sun Feb 27, 2005 7:45 pm
- Forum: Volume 1 (100-199)
- Topic: 101 - The Blocks Problem
- Replies: 635
- Views: 108604
- Sun Feb 27, 2005 5:38 pm
- Forum: Volume 1 (100-199)
- Topic: 102 - Ecological Bin Packing
- Replies: 485
- Views: 116219
- Sat Feb 26, 2005 9:20 pm
- Forum: Volume 1 (100-199)
- Topic: 102 - Ecological Bin Packing
- Replies: 485
- Views: 116219
- Tue Feb 22, 2005 1:10 pm
- Forum: Volume 1 (100-199)
- Topic: 101 - The Blocks Problem
- Replies: 635
- Views: 108604
Hope this helps:i seem not to understand this problem correctly.
http://online-judge.uva.es/board/viewto ... hlight=101
- Thu Feb 17, 2005 10:06 am
- Forum: Volume 1 (100-199)
- Topic: 113 - Power of Cryptography
- Replies: 163
- Views: 50232
Code: Select all
l = 1; r = 1000000000;
if (n>12) r = (int)pow(10,101.0/n);
Code: Select all
n=11 ==> 10^(11 * 9) = 10 ^ 99
n=12 ==> 10^(12 * 9) = 10 ^ 108 <=!!!!!!!
n=13 ==> pow(10,101.0/n)^13 = 58780160^13 < 10^101
- Thu Feb 17, 2005 6:44 am
- Forum: Volume 1 (100-199)
- Topic: 113 - Power of Cryptography
- Replies: 163
- Views: 50232
- Wed Feb 16, 2005 11:39 am
- Forum: Volume 1 (100-199)
- Topic: 113 - Power of Cryptography
- Replies: 163
- Views: 50232
Code: Select all
temp[0] = 1;
temp[1] = 1;
- Wed Feb 16, 2005 11:06 am
- Forum: Volume 1 (100-199)
- Topic: 112 - Tree Summing
- Replies: 137
- Views: 32264
Code: Select all
#define MAX 100
- Sun Feb 13, 2005 9:46 am
- Forum: Volume 1 (100-199)
- Topic: 118 - Mutant Flatworld Explorers
- Replies: 68
- Views: 20434
Maybe you already got AC...
If not, try this:
If not, try this:
Code: Select all
1 1
0 0 N
LF
- Sun Feb 13, 2005 7:34 am
- Forum: Volume 1 (100-199)
- Topic: 112 - Tree Summing
- Replies: 137
- Views: 32264
Though I don't look into your code, try this input:
Code: Select all
3
(1
(1 (1 ()()) ())
(2 () ())
)
3
(1
(1 (2 ()()) ())
(2 () ())
)
- Sun Feb 06, 2005 6:37 am
- Forum: Volume 1 (100-199)
- Topic: 120 - Stacks of Flapjacks
- Replies: 118
- Views: 30236
Test the following input:
My output:
And you'd better not use "\b" in printf to cancel the outputting of the last white space.
Because, when redirecting your output to a file, the file has '^H' (=0x08) characters which are the cause of WA.
Code: Select all
4 4 1
Code: Select all
4 4 1
1 0
Because, when redirecting your output to a file, the file has '^H' (=0x08) characters which are the cause of WA.
- Sat Feb 05, 2005 2:57 pm
- Forum: Volume 1 (100-199)
- Topic: 120 - Stacks of Flapjacks
- Replies: 118
- Views: 30236
Re: Please answer me this question about #120.
The correct interpretation is,
2. The biggest at position 1, the second biggest at position 2, the third biggest at position 3 .... the smallest on the top.