結果

問題 No.1476 esreveR dna esreveR
ユーザー shigeoku
提出日時 2021-04-16 20:44:35
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
TLE  
実行時間 -
コード長 228 bytes
コンパイル時間 83 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 26,960 KB
最終ジャッジ日時 2024-07-02 23:16:06
合計ジャッジ時間 3,610 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
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