Submission #3601493
Source Code Expand
l=gets.to_i-1 v=1 E=[] until l.zero? if l.odd? E<<[v,20,l] l-=1 end if l<=2 l=0 E<<[v,20,0]<<[v,20,1]<<[v,20,2] else l/=2 E<<[v,v+1,0]<<[v,v+1,l] end end puts "20 #{E.size}" puts E.map{|s|s*" "}
Submission Info
Submission Time | |
---|---|
Task | D - All Your Paths are Different Lengths |
User | chabo |
Language | Ruby (2.3.3) |
Score | 0 |
Code Size | 247 Byte |
Status | WA |
Exec Time | 8 ms |
Memory | 1916 KB |
Judge Result
Set Name | Sample | All | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 0 / 700 | ||||||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | s1.txt, s2.txt |
All | 01.txt, 02.txt, 03.txt, 04.txt, 05.txt, 06.txt, 07.txt, 08.txt, 09.txt, 10.txt, 11.txt, 12.txt, 13.txt, 14.txt, 15.txt, 16.txt, 17.txt, 18.txt, 19.txt, 20.txt, s1.txt, s2.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
01.txt | WA | 8 ms | 1916 KB |
02.txt | WA | 7 ms | 1788 KB |
03.txt | WA | 7 ms | 1788 KB |
04.txt | WA | 7 ms | 1788 KB |
05.txt | WA | 7 ms | 1788 KB |
06.txt | WA | 7 ms | 1788 KB |
07.txt | AC | 7 ms | 1788 KB |
08.txt | WA | 7 ms | 1788 KB |
09.txt | WA | 7 ms | 1788 KB |
10.txt | WA | 7 ms | 1788 KB |
11.txt | WA | 7 ms | 1788 KB |
12.txt | WA | 7 ms | 1788 KB |
13.txt | WA | 7 ms | 1788 KB |
14.txt | WA | 7 ms | 1788 KB |
15.txt | WA | 7 ms | 1788 KB |
16.txt | WA | 7 ms | 1788 KB |
17.txt | WA | 7 ms | 1788 KB |
18.txt | WA | 7 ms | 1788 KB |
19.txt | WA | 7 ms | 1788 KB |
20.txt | WA | 7 ms | 1788 KB |
s1.txt | AC | 7 ms | 1788 KB |
s2.txt | WA | 7 ms | 1788 KB |