Search found 49 matches
- Sun Oct 10, 2010 5:17 am
- Forum: Volume 118 (11800-11899)
- Topic: 11866 - Triangle
- Replies: 6
- Views: 3063
Re: 11866 - Triangle
Basically, its easy to count the number of triples you can form with tree numbers between X and Y considering triples as sets (i mean considering (1,2,3) the same as (2,1,3) ). Then you only have to count the number of those triples that can not form a triangle. This means the numbers of triples x ...
- Sat Nov 14, 2009 3:54 am
- Forum: Volume 102 (10200-10299)
- Topic: 10280 - Old Wine Into New Bottles
- Replies: 15
- Views: 9874
Re: 10280 - Old Wine Into New Bottles
I havent code it yet, but I think its also solvable ( althougth not too efficient ) with max = min...
If you have <= 5000 bottles ( each with no empty space, just giving you the integer amount of wine they can take ), and you consider a matrix mat[5000], you can get
in O(n^2) which amounts of wine ...
If you have <= 5000 bottles ( each with no empty space, just giving you the integer amount of wine they can take ), and you consider a matrix mat[5000], you can get
in O(n^2) which amounts of wine ...
- Sun Aug 03, 2008 6:07 pm
- Forum: Volume 114 (11400-11499)
- Topic: 11475 - Extend to Palindrome
- Replies: 32
- Views: 20498
11475 - Extend to Palindrome
Hi!, its not the first time i see this problem, and its not the first time i dont see how to solve it... any hints? thanks! Eric.
- Wed Jan 23, 2008 3:20 am
- Forum: Volume 114 (11400-11499)
- Topic: 11403 - Binary Multiplication
- Replies: 25
- Views: 13894
Well, i think many of us had the same problem. Someone can say that there was a clarification, but as it was written ( "There's an empty line after each test case." ), i misunderstood the clarification, and i thought that there was a line after each case in the input. Anyway, it was a nice contest ...
- Mon Jan 21, 2008 4:29 am
- Forum: Volume 113 (11300-11399)
- Topic: 11386 - Triples
- Replies: 23
- Views: 10972
- Mon Jan 21, 2008 4:23 am
- Forum: Volume 113 (11300-11399)
- Topic: 11378 - Bey Battle
- Replies: 10
- Views: 16047
- Sun Jan 20, 2008 10:51 pm
- Forum: Volume 114 (11400-11499)
- Topic: 11400 - Lighting System Design
- Replies: 6
- Views: 4197
- Sun Jan 20, 2008 10:00 pm
- Forum: Volume 114 (11400-11499)
- Topic: 11400 - Lighting System Design
- Replies: 6
- Views: 4197
11400 - Lighting System Design
Hi, this problems seems like a Min-Cost-Max-Flow problem, but the cost of the sources complicate everything, can anyone give me a hint? Thanks, Eric.
PD: if it is not right to post this problem here i will delete it.
PD2: where there any tricky cases for the problem 11403 ( Binary Multiplication ).
PD: if it is not right to post this problem here i will delete it.
PD2: where there any tricky cases for the problem 11403 ( Binary Multiplication ).
- Tue Jan 15, 2008 5:16 am
- Forum: Volume 113 (11300-11399)
- Topic: 11394 - Digit Blocks
- Replies: 18
- Views: 11409
I dont know tricky cases... but my program now gives:
gl! Eric.
Code: Select all
14
1
2
16
2435199
6529444
1757073698223
14635897285138
4133746960368
- Tue Jan 15, 2008 4:49 am
- Forum: Volume 113 (11300-11399)
- Topic: 11394 - Digit Blocks
- Replies: 18
- Views: 11409
- Mon Jan 14, 2008 5:49 am
- Forum: Volume 113 (11300-11399)
- Topic: 11385 - Da Vinci Code
- Replies: 70
- Views: 35012
- Mon Jan 14, 2008 5:39 am
- Forum: Volume 113 (11300-11399)
- Topic: 11390 - The Sultan's Feast
- Replies: 14
- Views: 6271
- Mon Jan 14, 2008 4:13 am
- Forum: Volume 113 (11300-11399)
- Topic: 11393 - Tri-Isomorphism
- Replies: 6
- Views: 3590
11393 - Tri-Isomorphism
Well, i just wanna ask something, i did the "correct" solution ( at least the idea ) during the contest, but i thought the answer for input 1 was "YES" because you can have 3 empty lists of edges for each subgraph and ( as i see ) everything will be ok with the definitions given at the problem ...
- Sat Jan 12, 2008 9:02 pm
- Forum: Volume 113 (11300-11399)
- Topic: 11386 - Triples
- Replies: 23
- Views: 10972
- Sat Jan 12, 2008 8:57 pm
- Forum: Volume 113 (11300-11399)
- Topic: 11394 - Digit Blocks
- Replies: 18
- Views: 11409