結果
問題 | No.2011 Arbitrary Mod (Hidden) |
ユーザー |
![]() |
提出日時 | 2025-06-12 21:26:09 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 213 bytes |
コンパイル時間 | 329 ms |
コンパイル使用メモリ | 82,304 KB |
実行使用メモリ | 51,840 KB |
最終ジャッジ日時 | 2025-06-12 21:27:14 |
合計ジャッジ時間 | 5,441 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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)