Submission #3672557
Source Code Expand
# -*- coding: utf-8 -*- ans = [100, 100, 200] + [0] * 17 def f(i): if i == 20: return ans[19] ans[i] = ans[i - 1] + ans[i - 2] + ans[i - 3] f(i + 1) def main(): f(3) print(ans[19]) if __name__ == '__main__': main()
Submission Info
Submission Time | |
---|---|
Task | A - 天下一プログラマーコンテスト1998 |
User | hiro_hiro |
Language | Python (3.4.3) |
Score | 10 |
Code Size | 275 Byte |
Status | AC |
Exec Time | 17 ms |
Memory | 2940 KB |
Judge Result
Set Name | All | ||
---|---|---|---|
Score / Max Score | 10 / 10 | ||
Status |
|
Set Name | Test Cases |
---|---|
All | no_input.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
no_input.txt | AC | 17 ms | 2940 KB |