結果
問題 |
No.2324 Two Countries within UEC
|
ユーザー |
|
提出日時 | 2023-05-28 14:02:59 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 227 bytes |
コンパイル時間 | 610 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 821,376 KB |
最終ジャッジ日時 | 2024-12-26 23:02:39 |
合計ジャッジ時間 | 27,222 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 1 RE * 1 |
other | AC * 3 WA * 7 RE * 13 MLE * 18 |
ソースコード
n,m,p,q = map(int,input().split()) xy = [[0]*m for i in range (n)] for i in range (n): for j in range (m): xy[i][j] = ((i+1)*(j+1))%p for i in range (q): x,f = map(int,input().split()) print(xy[x].count(f))