結果
| 問題 |
No.2011 Arbitrary Mod (Hidden)
|
| コンテスト | |
| ユーザー |
qwewe
|
| 提出日時 | 2025-05-14 13:03:14 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 315 bytes |
| コンパイル時間 | 234 ms |
| コンパイル使用メモリ | 82,352 KB |
| 実行使用メモリ | 54,152 KB |
| 最終ジャッジ日時 | 2025-05-14 13:04:32 |
| 合計ジャッジ時間 | 6,295 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 2 WA * 41 |
ソースコード
def solve():
n = int(input())
a = 20 # Example value for a, replace with the actual value
M = 998244353 # Example value for M, can be changed
print(M)
base = (a**2 - 398) % M
exponent = pow(2, n, M - 1) # Euler's totient theorem
ans = pow(base, exponent, M)
print(ans)
solve()
qwewe