結果
問題 |
No.854 公平なりんご分配
|
ユーザー |
|
提出日時 | 2019-09-20 00:53:27 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 216 bytes |
コンパイル時間 | 120 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 21,060 KB |
最終ジャッジ日時 | 2024-07-22 06:56:45 |
合計ジャッジ時間 | 21,276 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 4 WA * 88 |
ソースコード
from itertools import accumulate as c;input();a=[0]+list(c(list(map(int,input().split())))) for i in range(int(input())): p,l,r=map(int,input().split()) if (a[l]-a[r-1])%p==0:print("Yes") else:print("NO")