結果

問題 No.1476 esreveR dna esreveR
ユーザー Super SolenoidSuper Solenoid
提出日時 2021-05-01 19:48:22
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 247 bytes
コンパイル時間 931 ms
コンパイル使用メモリ 10,632 KB
実行使用メモリ 12,428 KB
最終ジャッジ日時 2023-09-27 09:00:37
合計ジャッジ時間 3,901 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

N = int(input())
if N%2==0:
    M = int(N/2)
else:
    M = int((N-1)/2)
a = 1
m = M%12
l = M - 12*m
n = 1178537983
if m > 0:
    for i in range(m):
        a = (a*n)%998244353 
if l >0:
    for i in range(l):
        a = (a*6)%998244353 

print(a)
0