結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,824 KB
testcase_01 AC 15 ms
7,864 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
l = M%12
m = int((M - l)/12)
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