ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1376. Dean's Pyramid 2

TESTS
Posted by DWED 8 Oct 2005 18:39
Input1:
10.0 10.0 1000.0 0.0 5

Output1:
972.679
5
0 2 1 4 3 0


Input2:
1  1 20.05 0.0 16

Output2:
10.967
16
0 2 1 4 0 3 2 1 0 3 4 1 0 3 2 1 0


Input3:
1  1 100.00 0.0 32

Output3:
81.397
32
0 2 1 4 0 3 2 1 0 3 4 1 0 3 2 1 0 3 4 1 0 3 2 1 0 3 4 1 0 3 2 1 0


Input4:
1  1 20.05 0.0 32

Output4:
1.863
32
0 2 1 4 0 3 2 1 0 3 4 1 0 3 2 1 0 3 4 1 0 3 2 1 0 3 4 1 0 3 2 1 0


Input5:
1  1.9 20.05 0.0 32

Output5:
0.085
32
0 2 1 4 3 2 1 0 3 4 1 2 0 1 2 3 4 0 3 4 1 2 0 1 2 3 4 1 0 3 2 1 0

Why the output5 is incorrect?

Edited by author 08.10.2005 18:40
Nice job! But at least i'm looking for a way to write an unTLE program..
Posted by Safe Bird 21 Oct 2005 19:18
A question
Posted by Safe Bird 21 Oct 2005 19:23
For Dean's pyramid problem, we have:

"If after the turn over some edge the pyramid stands on its base, the next turn can be performed either over the same edge or over the opposite edge of the pyramids base only."

how about this problem? (i haven't seen any words describing such prop..
I passed case 5, and mine answer is:
Posted by Safe Bird 21 Oct 2005 21:57
0.085
32
0 2 1 4 3 2 1 0 3 4 1 2 0 3 4 1 2 0 3 4 1 2 0 3 4 1 2 3 0 1 4 3 0


maybe ours are the same. i haven't checked.

i got wa on 7  :S...i donnot why..

Edited by author 21.10.2005 22:00