Submission #3392551
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; cin >> n; cout << sho(n - 1) << endl; }
Submission Info
Submission Time | |
---|---|
Task | A - 天下一プログラマーコンテスト1998 |
User | xuzijian629 |
Language | C++14 (GCC 5.4.1) |
Score | 0 |
Code Size | 334 Byte |
Status | WA |
Exec Time | 1 ms |
Memory | 256 KB |
Judge Result
Set Name | All | ||
---|---|---|---|
Score / Max Score | 0 / 10 | ||
Status |
|
Set Name | Test Cases |
---|---|
All | no_input.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
no_input.txt | WA | 1 ms | 256 KB |