結果
| 問題 | No.2324 Two Countries within UEC |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-05-28 14:00:41 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
MLE
|
| 実行時間 | - |
| コード長 | 264 bytes |
| 記録 | |
| コンパイル時間 | 338 ms |
| コンパイル使用メモリ | 20,700 KB |
| 実行使用メモリ | 652,632 KB |
| 最終ジャッジ日時 | 2026-06-01 18:28:20 |
| 合計ジャッジ時間 | 7,522 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | -- * 2 |
| other | MLE * 1 -- * 40 |
ソースコード
from collections import defaultdict
n,m,p,q=map(int,input().split())
f=defaultdict(list)
for i in range(1,n+1):
for j in range(1,m+1):
f[i].append((i*j)%p)
for i in range(q):
x,k=map(int,input().split())
print(f[x].count(k))