Submission #3050528
Source Code Expand
list = input().split() for c in list: int(c) state = true while true: i = 0 for n in list: if n % 2 state = false break else: n /= 2 if state: i += 1 return i
Submission Info
Submission Time | |
---|---|
Task | B - Shift only |
User | hogeandfuga |
Language | Ruby (2.3.3) |
Score | 0 |
Code Size | 268 Byte |
Status | RE |
Exec Time | 7 ms |
Memory | 1788 KB |
Compile Error
./Main.rb:3: syntax error, unexpected ':', expecting keyword_do_cond or ';' or '\n' for c in list: ^ ./Main.rb:7: syntax error, unexpected ':', expecting keyword_do_cond or ';' or '\n' while true: ^ ./Main.rb:9: syntax error, unexpected ':', expecting keyword_do_cond or ';' or '\n' for n in list: ^ ./Main.rb:13: syntax error, unexpected ':' else: ^ ./Main.rb:15: syntax error, unexpected ':', expecting keyword_then or ';' or '\n' if state: ^ ./Main.rb:20: syntax error, unexpected end-of-input, expecting keyword_end
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 0 / 200 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | sample1.txt, sample2.txt, sample3.txt |
All | sample1.txt, sample2.txt, sample3.txt, 1.txt, 2.txt, 3.txt, 4.txt, 5.txt, 6.txt, 7.txt, sample1.txt, sample2.txt, sample3.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
1.txt | RE | 7 ms | 1788 KB |
2.txt | RE | 7 ms | 1788 KB |
3.txt | RE | 7 ms | 1788 KB |
4.txt | RE | 6 ms | 1788 KB |
5.txt | RE | 7 ms | 1788 KB |
6.txt | RE | 7 ms | 1788 KB |
7.txt | RE | 7 ms | 1788 KB |
sample1.txt | RE | 7 ms | 1788 KB |
sample2.txt | RE | 6 ms | 1788 KB |
sample3.txt | RE | 6 ms | 1788 KB |