結果

問題 No.1476 esreveR dna esreveR
ユーザー shigeokushigeoku
提出日時 2021-04-16 20:42:46
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 228 bytes
コンパイル時間 192 ms
コンパイル使用メモリ 82,304 KB
実行使用メモリ 219,520 KB
最終ジャッジ日時 2024-07-02 23:12:33
合計ジャッジ時間 3,772 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other TLE * 1 -- * 5
権限があれば一括ダウンロードができます

ソースコード

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