結果
問題 |
No.2324 Two Countries within UEC
|
ユーザー |
👑 |
提出日時 | 2023-05-28 20:48:42 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 150 bytes |
コンパイル時間 | 939 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-12-27 18:30:22 |
合計ジャッジ時間 | 27,861 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 33 WA * 8 |
ソースコード
def J(): return map(int,input().split()) N,M,P,Q=J() for i in range(Q): x,f=J() y=pow(x,P-2,P)*f%P if y<1:y=P print([(M-y)//P+1,0][x%P<1 or M<y])