結果

問題 No.1136 Four Points Tour
ユーザー matriematrie
提出日時 2021-01-08 12:45:45
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
実行時間 -
コード長 75 bytes
コンパイル時間 95 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 17,948 KB
最終ジャッジ日時 2024-04-27 14:40:20
合計ジャッジ時間 3,906 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 27 ms
17,440 KB
testcase_01 AC 28 ms
10,624 KB
testcase_02 AC 29 ms
10,624 KB
testcase_03 AC 29 ms
10,624 KB
testcase_04 AC 27 ms
10,624 KB
testcase_05 AC 29 ms
10,496 KB
testcase_06 AC 28 ms
10,624 KB
testcase_07 TLE -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
01_Sample03_evil.txt -- -
04_Rnd_large_evil1.txt -- -
04_Rnd_large_evil2.txt -- -
04_Rnd_large_evil3.txt -- -
04_Rnd_large_evil4.txt -- -
04_Rnd_large_evil5.txt -- -
04_Rnd_large_evil6.txt -- -
04_Rnd_large_evil7.txt -- -
04_Rnd_large_evil8.txt -- -
04_Rnd_large_evil9.txt -- -
04_Rnd_large_evil10.txt -- -
05_Rnd_huge_evil1.txt -- -
05_Rnd_huge_evil2.txt -- -
05_Rnd_huge_evil3.txt -- -
05_Rnd_huge_evil4.txt -- -
05_Rnd_huge_evil5.txt -- -
05_Rnd_huge_evil6.txt -- -
05_Rnd_huge_evil7.txt -- -
99_evil_01.txt -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
m=10**9+7
a,b=1,0
for i in range(n):a,b=b,a*3+b*2
print(a%m)
0