結果

問題 No.557 点対称
ユーザー ああいいああいい
提出日時 2022-03-08 14:14:03
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 233 bytes
コンパイル時間 630 ms
コンパイル使用メモリ 87,104 KB
実行使用メモリ 71,524 KB
最終ジャッジ日時 2023-09-30 20:06:21
合計ジャッジ時間 4,512 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 73 ms
71,264 KB
testcase_05 AC 73 ms
71,332 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 72 ms
71,132 KB
testcase_09 WA -
testcase_10 AC 74 ms
71,396 KB
testcase_11 AC 74 ms
71,168 KB
testcase_12 WA -
testcase_13 AC 74 ms
71,328 KB
testcase_14 AC 73 ms
71,448 KB
testcase_15 AC 72 ms
71,208 KB
testcase_16 AC 72 ms
71,356 KB
testcase_17 WA -
testcase_18 WA -
testcase_19 AC 74 ms
71,524 KB
testcase_20 AC 74 ms
71,368 KB
testcase_21 AC 74 ms
71,472 KB
testcase_22 AC 75 ms
71,488 KB
testcase_23 AC 73 ms
71,236 KB
testcase_24 WA -
testcase_25 AC 73 ms
71,304 KB
testcase_26 WA -
testcase_27 WA -
testcase_28 AC 75 ms
71,016 KB
testcase_29 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

P = 10 ** 9 + 7
N = int(input())
import sys

if N <= 2:
    print(4)
    exit()
    
if N % 2 == 0:
    u = N // 2
    ans = 4 * pow(5,u-1,P) % P
    print(ans)
else:
    u = (N + 1) // 2
    ans = 4 * pow(5,u-1,P) % P
    print(ans)
0