結果
| 問題 | No.854 公平なりんご分配 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-07-26 22:51:04 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 307 bytes |
| 記録 | |
| コンパイル時間 | 741 ms |
| コンパイル使用メモリ | 20,752 KB |
| 実行使用メモリ | 31,964 KB |
| 最終ジャッジ日時 | 2026-03-23 15:19:04 |
| 合計ジャッジ時間 | 241,495 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 40 TLE * 52 |
ソースコード
#coding:utf-8
from functools import reduce
from operator import mul
input()
boxes=list(map(int,input().split()))
Q=int(input())
for i in range(Q):
_in=list(map(int,input().split()))
P,L,R = _in[0],_in[1],_in[2]
if reduce(mul,boxes[L-1:R])%P==0:
print("Yes")
else:
print("NO")