Submission #155346
Source Code Expand
def tri(n): if n == 0: return 0 elif n == 1: return 0 elif n == 2: return 1 else: return tri(n - 1) + tri(n - 2) + tri(n - 3) if __name__ == '__main__': n = int(input()) print(tri(n-1)%10007)
Submission Info
Submission Time | |
---|---|
Task | A - 世界のFizzBuzz |
User | himaaaatti |
Language | Python (3.2.3) |
Score | 0 |
Code Size | 272 Byte |
Status | WA |
Exec Time | 231 ms |
Memory | 8308 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 | 231 ms | 8308 KB |
sample_02.txt | WA | 129 ms | 8308 KB |
sample_03.txt | WA | 126 ms | 8292 KB |
test_1.txt | WA | 125 ms | 8304 KB |
test_2.txt | WA | 130 ms | 8292 KB |
test_3.txt | WA | 129 ms | 8288 KB |
test_4.txt | WA | 128 ms | 8308 KB |
test_5.txt | WA | 127 ms | 8308 KB |
test_6.txt | WA | 128 ms | 8296 KB |
test_7.txt | WA | 134 ms | 8308 KB |
test_8.txt | WA | 129 ms | 8304 KB |
test_9.txt | WA | 128 ms | 8308 KB |