結果
| 問題 | No.3133 法B逆元 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-05-02 21:37:37 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 250 ms / 2,000 ms |
| コード長 | 141 bytes |
| 記録 | |
| コンパイル時間 | 288 ms |
| コンパイル使用メモリ | 21,540 KB |
| 実行使用メモリ | 15,868 KB |
| 最終ジャッジ日時 | 2026-07-10 10:52:21 |
| 合計ジャッジ時間 | 4,490 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 21 |
ソースコード
N, B = map(int, input().split())
if B == 1:
print("0")
exit()
for i in range(B):
if N*i%B == 1:
print(i)
exit()
print("NaN")