結果

問題 No.1250 汝は倍数なりや?
ユーザー laneguelanegue
提出日時 2020-10-09 21:35:06
言語 Ruby
(3.3.0)
結果
AC  
実行時間 155 ms / 1,000 ms
コード長 122 bytes
コンパイル時間 208 ms
コンパイル使用メモリ 11,524 KB
実行使用メモリ 27,748 KB
最終ジャッジ日時 2023-09-27 15:30:40
合計ジャッジ時間 7,055 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 68 ms
15,032 KB
testcase_01 AC 68 ms
15,184 KB
testcase_02 AC 77 ms
15,180 KB
testcase_03 AC 68 ms
15,140 KB
testcase_04 AC 69 ms
15,292 KB
testcase_05 AC 68 ms
15,292 KB
testcase_06 AC 70 ms
15,360 KB
testcase_07 AC 70 ms
15,132 KB
testcase_08 AC 70 ms
15,180 KB
testcase_09 AC 70 ms
15,260 KB
testcase_10 AC 70 ms
15,088 KB
testcase_11 AC 71 ms
15,064 KB
testcase_12 AC 69 ms
15,220 KB
testcase_13 AC 71 ms
15,252 KB
testcase_14 AC 70 ms
15,308 KB
testcase_15 AC 69 ms
15,144 KB
testcase_16 AC 68 ms
15,028 KB
testcase_17 AC 69 ms
15,140 KB
testcase_18 AC 68 ms
15,180 KB
testcase_19 AC 69 ms
15,032 KB
testcase_20 AC 69 ms
15,264 KB
testcase_21 AC 69 ms
15,032 KB
testcase_22 AC 69 ms
15,132 KB
testcase_23 AC 69 ms
15,252 KB
testcase_24 AC 69 ms
15,300 KB
testcase_25 AC 70 ms
15,312 KB
testcase_26 AC 73 ms
15,084 KB
testcase_27 AC 71 ms
15,152 KB
testcase_28 AC 69 ms
15,308 KB
testcase_29 AC 68 ms
15,132 KB
testcase_30 AC 69 ms
15,344 KB
testcase_31 AC 69 ms
15,148 KB
testcase_32 AC 71 ms
15,064 KB
testcase_33 AC 153 ms
27,748 KB
testcase_34 AC 118 ms
21,664 KB
testcase_35 AC 141 ms
26,328 KB
testcase_36 AC 144 ms
26,632 KB
testcase_37 AC 119 ms
22,180 KB
testcase_38 AC 119 ms
22,788 KB
testcase_39 AC 120 ms
21,792 KB
testcase_40 AC 118 ms
21,852 KB
testcase_41 AC 127 ms
23,812 KB
testcase_42 AC 98 ms
19,844 KB
testcase_43 AC 155 ms
26,464 KB
testcase_44 AC 102 ms
19,704 KB
testcase_45 AC 145 ms
26,880 KB
testcase_46 AC 92 ms
18,432 KB
testcase_47 AC 123 ms
22,264 KB
testcase_48 AC 75 ms
15,212 KB
testcase_49 AC 72 ms
15,248 KB
testcase_50 AC 68 ms
15,296 KB
testcase_51 AC 67 ms
15,312 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

N,H=gets.split.map(&:to_i)
A=gets.split.map(&:to_i)
if A.inject(1){|r,i|(r*i)%H}==0
    puts "YES"
else
    puts "NO"
end
0