結果
問題 |
No.2011 Arbitrary Mod (Hidden)
|
ユーザー |
![]() |
提出日時 | 2025-06-12 16:21:13 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 213 bytes |
コンパイル時間 | 159 ms |
コンパイル使用メモリ | 82,184 KB |
実行使用メモリ | 54,000 KB |
最終ジャッジ日時 | 2025-06-12 16:21:25 |
合計ジャッジ時間 | 5,616 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 2 WA * 41 |
ソースコード
n = int(input()) M = 998244353 print(M) a = 20 # Assuming a is fixed as in the sample b = (a * a - 398) % M if b == 0: print(0) else: exponent = pow(2, n, M-1) ans = pow(b, exponent, M) print(ans)