結果
| 問題 | No.2324 Two Countries within UEC |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-05-28 14:20:16 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 172 bytes |
| 記録 | |
| コンパイル時間 | 185 ms |
| コンパイル使用メモリ | 85,504 KB |
| 実行使用メモリ | 65,152 KB |
| 最終ジャッジ日時 | 2026-06-01 19:17:30 |
| 合計ジャッジ時間 | 7,233 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | -- * 2 |
| other | TLE * 1 -- * 40 |
ソースコード
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)