結果
| 問題 |
No.854 公平なりんご分配
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-07-26 22:51:04 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 307 bytes |
| コンパイル時間 | 173 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 18,152 KB |
| 最終ジャッジ日時 | 2024-07-02 08:46:57 |
| 合計ジャッジ時間 | 7,058 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 30 TLE * 1 -- * 61 |
ソースコード
#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")