Hello Cho.
I have found Greedy aproach too,but my algorithm is macking matrix with numbers not in range 0..20 and I can't change my algorithm too work vor 0..20.
Give some hint please.
Thanks.
Eduard
Search found 183 matches
- Mon Sep 11, 2006 10:56 am
- Forum: Volume 110 (11000-11099)
- Topic: 11082 - Matrix Decompressing
- Replies: 28
- Views: 14424
- Sun Feb 12, 2006 10:15 am
- Forum: Volume 109 (10900-10999)
- Topic: 10992 - The Ghost of Programmers
- Replies: 36
- Views: 21213
- Tue Nov 15, 2005 2:42 pm
- Forum: Volume 120 (12000-12099)
- Topic: 12081 - Reduced ID Numbers
- Replies: 18
- Views: 2933
PS: Eduard, i don't know why u got accepted solving the problem using that algorithm! Perhaps I'm wrong, but I think mine is quicker (you know, generating n*(n-1)/2 numbers, then finding their divisors and cheking what number doesn't divide any id...) and I got T.L.! Anyway, thanks a lot for your a...
- Mon Nov 14, 2005 6:38 pm
- Forum: Volume 120 (12000-12099)
- Topic: 12081 - Reduced ID Numbers
- Replies: 18
- Views: 2933
- Mon Jun 27, 2005 9:19 pm
- Forum: Volume 108 (10800-10899)
- Topic: 10875 - Big Math
- Replies: 27
- Views: 7723
- Mon Jun 27, 2005 5:26 pm
- Forum: Volume 108 (10800-10899)
- Topic: 10875 - Big Math
- Replies: 27
- Views: 7723
- Mon Jun 27, 2005 3:05 pm
- Forum: Volume 108 (10800-10899)
- Topic: 10875 - Big Math
- Replies: 27
- Views: 7723
Thanks Misof but I'm have consider all that.
Input
Output
I need some other test.
Thanks.
Eduard.
Input
Code: Select all
.0. 000 .0. 000 0.0 000
.0. 0.0 ... ..0 0.0 ..0
.0. 0.0 000 000 .0. 000
.0. 0.0 ... ..0 0.0 ..0
.0. 000 .0. 000 0.0 000
000
0.0
0.0
0.0
000
Code: Select all
000
0.0
000
..0
..0
Thanks.
Eduard.
- Mon Jun 27, 2005 2:28 pm
- Forum: Volume 108 (10800-10899)
- Topic: 10875 - Big Math
- Replies: 27
- Views: 7723
Hello. Thanks Adrian for replay. My program works for neative answers. Input 000 000 ... 000 000 ..0 ..0 ... ..0 ..0 000 000 000 000 000 0.. 0.. ... ..0 ..0 000 000 ... 000 000 .0. ... 000 .0. ... ..0 .0. 000 000 .0. ... 0.. .0. ... 000 .0. ... .0. 000 000 0.0 000 0.. 000 000 000 .0. ... .0. ..0 ..0...
- Mon Jun 27, 2005 1:56 pm
- Forum: Volume 108 (10800-10899)
- Topic: 10875 - Big Math
- Replies: 27
- Views: 7723
10875 - Big Math
Hello.
I'm getting this problem WA.
I can't find any mistake.Please give me some tests.
Can answer be negative?
Thanks.
Eduard.
I'm getting this problem WA.
I can't find any mistake.Please give me some tests.
Can answer be negative?
Thanks.
Eduard.
- Sat Jun 11, 2005 9:54 am
- Forum: Volume 100 (10000-10099)
- Topic: 10054 - The Necklace
- Replies: 62
- Views: 39341
- Thu Jun 09, 2005 8:10 pm
- Forum: Volume 100 (10000-10099)
- Topic: 10054 - The Necklace
- Replies: 62
- Views: 39341
Here is my code.
Code: Select all
ACCEPTED
- Thu Jun 09, 2005 1:24 pm
- Forum: Volume 100 (10000-10099)
- Topic: 10054 - The Necklace
- Replies: 62
- Views: 39341
Hello liux0229
Thanks for answering after for 4 months.
My program gives for yout input this and I think correct output.
May be you can give some other tests?
Thanks.
Thanks for answering after for 4 months.
My program gives for yout input this and I think correct output.
Code: Select all
Case #1
1 40
40 30
30 20
20 10
10 1
Thanks.
- Tue May 24, 2005 4:00 pm
- Forum: Other words
- Topic: To the top finishers in the III Local Contest in Murcia
- Replies: 10
- Views: 6076
- Mon May 23, 2005 8:15 pm
- Forum: Volume 107 (10700-10799)
- Topic: 10721 - Bar Codes
- Replies: 26
- Views: 15441
- Tue May 10, 2005 12:55 pm
- Forum: Volume 108 (10800-10899)
- Topic: 10842 - Traffic Flow
- Replies: 17
- Views: 12013