結果

問題 No.1476 esreveR dna esreveR
ユーザー 👑 terry_u16terry_u16
提出日時 2021-04-16 20:36:21
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 75 ms / 2,000 ms
コード長 236 bytes
コンパイル時間 465 ms
コンパイル使用メモリ 87,196 KB
実行使用メモリ 71,412 KB
最終ジャッジ日時 2023-09-15 21:32:28
合計ジャッジ時間 1,721 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
71,092 KB
testcase_01 AC 75 ms
71,092 KB
testcase_02 AC 74 ms
71,360 KB
testcase_03 AC 75 ms
71,216 KB
testcase_04 AC 74 ms
71,412 KB
testcase_05 AC 74 ms
71,088 KB
testcase_06 AC 75 ms
71,208 KB
testcase_07 AC 72 ms
71,208 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n: int = int(input()) // 2
mod: int = 998244353

current: int = 6
result: int = 1

for i in range(60):
    if ((n >> i) & 1) > 0:
        result *= current
        result %= mod

    current *= current
    current %= mod

print(result)
0