結果

問題 No.557 点対称
ユーザー cielciel
提出日時 2017-08-11 22:48:13
言語 PyPy2
(7.3.13)
結果
AC  
実行時間 76 ms / 2,000 ms
コード長 95 bytes
コンパイル時間 1,214 ms
コンパイル使用メモリ 77,856 KB
実行使用メモリ 76,612 KB
最終ジャッジ日時 2023-08-02 23:14:23
合計ジャッジ時間 3,375 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
76,496 KB
testcase_01 AC 71 ms
76,432 KB
testcase_02 AC 68 ms
76,208 KB
testcase_03 AC 68 ms
76,428 KB
testcase_04 AC 67 ms
76,328 KB
testcase_05 AC 66 ms
76,432 KB
testcase_06 AC 67 ms
76,404 KB
testcase_07 AC 68 ms
76,352 KB
testcase_08 AC 70 ms
76,612 KB
testcase_09 AC 69 ms
76,348 KB
testcase_10 AC 68 ms
76,528 KB
testcase_11 AC 65 ms
76,180 KB
testcase_12 AC 76 ms
76,224 KB
testcase_13 AC 69 ms
76,332 KB
testcase_14 AC 68 ms
76,420 KB
testcase_15 AC 70 ms
76,180 KB
testcase_16 AC 65 ms
76,408 KB
testcase_17 AC 66 ms
76,424 KB
testcase_18 AC 69 ms
76,488 KB
testcase_19 AC 70 ms
76,536 KB
testcase_20 AC 69 ms
76,420 KB
testcase_21 AC 68 ms
76,220 KB
testcase_22 AC 71 ms
76,408 KB
testcase_23 AC 69 ms
76,152 KB
testcase_24 AC 67 ms
76,404 KB
testcase_25 AC 69 ms
76,564 KB
testcase_26 AC 69 ms
76,420 KB
testcase_27 AC 67 ms
76,404 KB
testcase_28 AC 68 ms
76,324 KB
testcase_29 AC 67 ms
76,068 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

M=10**9+7
n=input()
if n<2:print 2;exit()
r=[1,3][n%2]
n/=2
if n:n-=1;r*=4
print pow(5,n,M)*r%M
0