結果

問題 No.314 ケンケンパ
ユーザー tjaketjake
提出日時 2015-12-08 00:51:46
言語 Python2
(2.7.18)
結果
AC  
実行時間 216 ms / 1,000 ms
コード長 77 bytes
コンパイル時間 381 ms
コンパイル使用メモリ 6,604 KB
実行使用メモリ 13,796 KB
最終ジャッジ日時 2023-10-12 20:26:28
合計ジャッジ時間 2,421 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 215 ms
13,472 KB
testcase_01 AC 12 ms
5,964 KB
testcase_02 AC 12 ms
6,168 KB
testcase_03 AC 11 ms
6,180 KB
testcase_04 AC 11 ms
5,960 KB
testcase_05 AC 12 ms
6,044 KB
testcase_06 AC 11 ms
6,084 KB
testcase_07 AC 12 ms
6,168 KB
testcase_08 AC 11 ms
5,968 KB
testcase_09 AC 11 ms
6,100 KB
testcase_10 AC 12 ms
5,960 KB
testcase_11 AC 11 ms
6,132 KB
testcase_12 AC 12 ms
6,176 KB
testcase_13 AC 12 ms
6,048 KB
testcase_14 AC 13 ms
6,168 KB
testcase_15 AC 13 ms
6,036 KB
testcase_16 AC 17 ms
5,972 KB
testcase_17 AC 32 ms
6,616 KB
testcase_18 AC 110 ms
9,696 KB
testcase_19 AC 216 ms
13,796 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

a=1;b=0;c=0;M=10**9+7
for i in[0]*~-input():a,b,c=c,a,(a+b)%M
print(a+b+c)%M
0