結果

問題 No.1476 esreveR dna esreveR
ユーザー shigeokushigeoku
提出日時 2021-04-16 20:42:46
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 228 bytes
コンパイル時間 559 ms
コンパイル使用メモリ 87,048 KB
実行使用メモリ 211,728 KB
最終ジャッジ日時 2023-09-15 21:45:32
合計ジャッジ時間 4,809 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,432 KB
testcase_01 AC 71 ms
71,172 KB
testcase_02 TLE -
testcase_03 -- -
testcase_04 -- -
testcase_05 -- -
testcase_06 -- -
testcase_07 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys

N = int(input())

def pow_r(x, n):
    if n == 0:
        return 1
    if n % 2 == 0:
        return pow_r(x**2, n//2) % 998244353
    else:
        return x * pow_r(x**2, (n-1)//2) % 998244353

print(pow_r(6, N//2))
0