結果
| 問題 |
No.2324 Two Countries within UEC
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-05-28 14:20:16 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 172 bytes |
| コンパイル時間 | 330 ms |
| コンパイル使用メモリ | 81,920 KB |
| 実行使用メモリ | 114,816 KB |
| 最終ジャッジ日時 | 2024-12-27 00:35:37 |
| 合計ジャッジ時間 | 99,069 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 10 TLE * 31 |
ソースコード
n,m,p,q = map(int,input().split())
for i in range(q):
count = 0
x,f = map(int,input().split())
for j in range(1,m+1):
if (x*j)%p==f:
count+=1
print(count)