結果
| 問題 | No.2007 Arbitrary Mod (Easy) |
| コンテスト | |
| ユーザー |
yas_yasyu
|
| 提出日時 | 2022-07-15 21:52:25 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 64 ms / 2,000 ms |
| + 555µs | |
| コード長 | 127 bytes |
| 記録 | |
| コンパイル時間 | 237 ms |
| コンパイル使用メモリ | 96,112 KB |
| 実行使用メモリ | 79,104 KB |
| 最終ジャッジ日時 | 2026-07-31 08:05:12 |
| 合計ジャッジ時間 | 6,597 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 30 |
ソースコード
A,N = map(int,input().split()) M = 1 cnt = 0 while(10**7>M): M *= A cnt+=1 print(M) if(cnt>N): cnt = N print((A**cnt)%M)
yas_yasyu