結果
問題 |
No.2007 Arbitrary Mod (Easy)
|
ユーザー |
|
提出日時 | 2022-11-29 13:10:50 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 206 bytes |
コンパイル時間 | 238 ms |
コンパイル使用メモリ | 12,288 KB |
実行使用メモリ | 21,116 KB |
最終ジャッジ日時 | 2024-10-07 00:01:13 |
合計ジャッジ時間 | 4,130 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 2 TLE * 1 |
other | -- * 30 |
ソースコード
def pow(x,n): if n==0: return 1 K=1 while n>1: if n%2!=0: K=K*x x=x**2 n//=2 return K*x a,n=map(int,input().split()) M=998244353 print(pow(a,n)%M)