Submission #3392556
Source Code Expand
#include <bits/stdc++.h> using namespace std; using i64 = int64_t; using vi = vector<i64>; using vvi = vector<vi>; long long sho(int n) { if (n <= 1) return 100; if (n == 2) return 200; return sho(n - 1) + sho(n - 2) + sho(n - 3); } int main() { int n = 20; cout << sho(n - 1) << endl; }
Submission Info
Submission Time | |
---|---|
Task | A - 天下一プログラマーコンテスト1998 |
User | xuzijian629 |
Language | C++14 (GCC 5.4.1) |
Score | 10 |
Code Size | 324 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 |