AtCoder Beginner Contest 006

Submission #1511910

Source codeソースコード

#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

Task問題 A - 世界のFizzBuzz
User nameユーザ名 yukiteru
Created time投稿日時
Language言語 C++14 (GCC 5.4.1)
Status状態 RE
Score得点 0
Source lengthソースコード長 342 Byte
File nameファイル名
Exec time実行時間 ms
Memory usageメモリ使用量 -

Test case

Set

Set name Score得点 / Max score Cases
All 0 / 100 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

Test case

Case name Status状態 Exec time実行時間 Memory usageメモリ使用量
sample_01.txt WA
sample_02.txt WA
sample_03.txt WA
test_1.txt RE
test_2.txt WA
test_3.txt WA
test_4.txt WA
test_5.txt WA
test_6.txt WA
test_7.txt WA
test_8.txt WA
test_9.txt WA