Submission #1511910
Source Code Expand
#include<iostream> #include<string> using namespace std; int main(void) { int n; int num; long long int* a; cin >> n; a = new long long int[n+2]; a[1] = 0; a[2] = 0; a[3] = 1; for (int i = 4; i <= n; i++) { a[i] = a[i - 1] + a[i - 2] + a[i - 3]; } cout << a[n] % 10007 << endl; delete[] a; return 0; }
Submission Info
Submission Time | |
---|---|
Task | A - 世界のFizzBuzz |
User | yukiteru |
Language | C++14 (GCC 5.4.1) |
Score | 0 |
Code Size | 342 Byte |
Status | RE |
Exec Time | 277 ms |
Memory | 256 KB |
Judge Result
Set Name | All | ||||
---|---|---|---|---|---|
Score / Max Score | 0 / 100 | ||||
Status |
|
Set Name | Test Cases |
---|---|
All | sample_01.txt, sample_02.txt, sample_03.txt, test_1.txt, test_2.txt, test_3.txt, test_4.txt, test_5.txt, test_6.txt, test_7.txt, test_8.txt, test_9.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
sample_01.txt | WA | 1 ms | 256 KB |
sample_02.txt | WA | 1 ms | 256 KB |
sample_03.txt | WA | 1 ms | 256 KB |
test_1.txt | RE | 277 ms | 256 KB |
test_2.txt | WA | 1 ms | 256 KB |
test_3.txt | WA | 1 ms | 256 KB |
test_4.txt | WA | 1 ms | 256 KB |
test_5.txt | WA | 1 ms | 256 KB |
test_6.txt | WA | 1 ms | 256 KB |
test_7.txt | WA | 1 ms | 256 KB |
test_8.txt | WA | 1 ms | 256 KB |
test_9.txt | WA | 1 ms | 256 KB |