結果
問題 |
No.2324 Two Countries within UEC
|
ユーザー |
|
提出日時 | 2023-07-16 23:33:58 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 200 bytes |
コンパイル時間 | 183 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 17,312 KB |
最終ジャッジ日時 | 2024-09-17 18:36:45 |
合計ジャッジ時間 | 8,718 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | -- * 2 |
other | TLE * 1 -- * 40 |
ソースコード
N, M, P, Q = map(int, input().split()) for i in range(Q): x, f = map(int, input().split()) ans = 0 for j in range(1, M + 1): if x * j % P == f: ans += 1 print(ans)