結果
| 問題 | No.2324 Two Countries within UEC |
| コンテスト | |
| ユーザー |
Schnee
|
| 提出日時 | 2023-05-28 15:13:01 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 191 bytes |
| 記録 | |
| コンパイル時間 | 403 ms |
| コンパイル使用メモリ | 20,832 KB |
| 実行使用メモリ | 21,760 KB |
| 最終ジャッジ日時 | 2026-06-01 22:09:06 |
| 合計ジャッジ時間 | 7,506 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | -- * 2 |
| other | TLE * 1 -- * 40 |
ソースコード
n,m,p,q = map(int, input().split())
for i in "_"*q:
x, f = map(int, input().split())
ans = 0
for i in range(1, m+1):
if x * i % p == f:
ans += 1
print(ans)
Schnee