Submission #3933028
Source Code Expand
#include <iostream> using namespace std; int main() { long long a[25]; a[0] = 100, a[1] = 100, a[2] = 200; for (int i = 3; i < 20; i++) { a[i] = a[i - 1] + a[i - 2] + a[i - 3]; } cout << a[19] << endl; return 0; }
Submission Info
Submission Time | |
---|---|
Task | A - 天下一プログラマーコンテスト1998 |
User | tansio |
Language | C++14 (GCC 5.4.1) |
Score | 10 |
Code Size | 251 Byte |
Status | AC |
Exec Time | 1 ms |
Memory | 256 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 | 1 ms | 256 KB |