結果

問題 No.854 公平なりんご分配
ユーザー kamomekamome
提出日時 2019-07-26 22:51:04
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
実行時間 -
コード長 307 bytes
コンパイル時間 103 ms
コンパイル使用メモリ 10,568 KB
実行使用メモリ 15,292 KB
最終ジャッジ日時 2023-09-15 03:28:24
合計ジャッジ時間 7,024 ms
ジャッジサーバーID
(参考情報)
judge13 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 20 ms
8,584 KB
testcase_01 AC 20 ms
8,608 KB
testcase_02 AC 20 ms
8,584 KB
testcase_03 AC 20 ms
8,600 KB
testcase_04 AC 20 ms
8,620 KB
testcase_05 AC 21 ms
8,572 KB
testcase_06 AC 21 ms
8,648 KB
testcase_07 AC 20 ms
8,712 KB
testcase_08 AC 21 ms
8,680 KB
testcase_09 AC 21 ms
8,576 KB
testcase_10 AC 21 ms
8,536 KB
testcase_11 AC 20 ms
8,576 KB
testcase_12 AC 20 ms
8,588 KB
testcase_13 AC 21 ms
8,624 KB
testcase_14 AC 21 ms
8,536 KB
testcase_15 AC 20 ms
8,720 KB
testcase_16 AC 21 ms
8,620 KB
testcase_17 AC 21 ms
8,712 KB
testcase_18 AC 21 ms
8,540 KB
testcase_19 AC 20 ms
8,572 KB
testcase_20 AC 21 ms
8,624 KB
testcase_21 AC 20 ms
8,568 KB
testcase_22 AC 31 ms
8,600 KB
testcase_23 AC 28 ms
8,732 KB
testcase_24 AC 56 ms
8,700 KB
testcase_25 AC 26 ms
8,608 KB
testcase_26 AC 63 ms
8,732 KB
testcase_27 AC 37 ms
8,720 KB
testcase_28 AC 29 ms
8,780 KB
testcase_29 AC 22 ms
8,692 KB
testcase_30 AC 27 ms
8,648 KB
testcase_31 AC 54 ms
8,744 KB
testcase_32 TLE -
testcase_33 -- -
testcase_34 -- -
testcase_35 -- -
testcase_36 -- -
testcase_37 -- -
testcase_38 -- -
testcase_39 -- -
testcase_40 -- -
testcase_41 -- -
testcase_42 -- -
testcase_43 -- -
testcase_44 -- -
testcase_45 -- -
testcase_46 -- -
testcase_47 -- -
testcase_48 -- -
testcase_49 -- -
testcase_50 -- -
testcase_51 -- -
testcase_52 -- -
testcase_53 -- -
testcase_54 -- -
testcase_55 -- -
testcase_56 -- -
testcase_57 -- -
testcase_58 -- -
testcase_59 -- -
testcase_60 -- -
testcase_61 -- -
testcase_62 -- -
testcase_63 -- -
testcase_64 -- -
testcase_65 -- -
testcase_66 -- -
testcase_67 -- -
testcase_68 -- -
testcase_69 -- -
testcase_70 -- -
testcase_71 -- -
testcase_72 -- -
testcase_73 -- -
testcase_74 -- -
testcase_75 -- -
testcase_76 -- -
testcase_77 -- -
testcase_78 -- -
testcase_79 -- -
testcase_80 -- -
testcase_81 -- -
testcase_82 -- -
testcase_83 -- -
testcase_84 -- -
testcase_85 -- -
testcase_86 -- -
testcase_87 -- -
testcase_88 -- -
testcase_89 -- -
testcase_90 -- -
testcase_91 -- -
testcase_92 -- -
testcase_93 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

#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")
0