Submission #3965512
Source Code Expand
#include <bits/stdc++.h> using namespace std; int main() { vector<long long> a(24); 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; }
Submission Info
Submission Time | |
---|---|
Task | A - 天下一プログラマーコンテスト1998 |
User | iruka |
Language | C++14 (GCC 5.4.1) |
Score | 10 |
Code Size | 217 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 |