Submission #572735
Source Code Expand
n=gets.chomp.to_i p=0 q=0 r=1 for i in 4..n do f=p+q+r p=q q=r r=f end ans=r%10007 print ans.to_s+"\n"
Submission Info
Submission Time | |
---|---|
Task | A - 世界のFizzBuzz |
User | im5895 |
Language | Ruby (1.9.3) |
Score | 0 |
Code Size | 125 Byte |
Status | WA |
Exec Time | 50 ms |
Memory | 4252 KB |
Judge Result
Set Name | All | ||
---|---|---|---|
Score / Max Score | 0 / 100 | ||
Status |
|
Set Name | Test Cases |
---|---|
All | test_1.txt, test_2.txt, test_3.txt, test_4.txt, test_5.txt, test_6.txt, test_7.txt, test_8.txt, test_9.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
sample_01.txt | WA | 50 ms | 4176 KB |
sample_02.txt | WA | 48 ms | 4204 KB |
sample_03.txt | WA | 48 ms | 4204 KB |
test_1.txt | WA | 46 ms | 4180 KB |
test_2.txt | WA | 46 ms | 4200 KB |
test_3.txt | WA | 49 ms | 4208 KB |
test_4.txt | WA | 49 ms | 4200 KB |
test_5.txt | WA | 46 ms | 4208 KB |
test_6.txt | WA | 46 ms | 4252 KB |
test_7.txt | WA | 50 ms | 4200 KB |
test_8.txt | WA | 48 ms | 4208 KB |
test_9.txt | WA | 49 ms | 4204 KB |