結果
問題 | No.2324 Two Countries within UEC |
ユーザー |
![]() |
提出日時 | 2023-05-28 14:16:47 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 247 bytes |
コンパイル時間 | 414 ms |
コンパイル使用メモリ | 12,288 KB |
実行使用メモリ | 25,984 KB |
最終ジャッジ日時 | 2024-12-27 00:20:35 |
合計ジャッジ時間 | 99,230 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 10 TLE * 31 |
ソースコード
def friend(x, f, P, M):count = 0for i in range(1, M + 1):if (x * i - f) % P == 0:count += 1return countN, M, P, Q = map(int, input().split())for i in range(Q):x, f = map(int, input().split())print(friend(x, f, P, M))