結果

問題 No.1250 汝は倍数なりや?
ユーザー Shiro_SShiro_S
提出日時 2020-10-09 21:27:22
言語 Ruby
(3.2.2)
結果
TLE  
(最新)
AC  
(最初)
実行時間 -
コード長 104 bytes
コンパイル時間 360 ms
コンパイル使用メモリ 11,232 KB
実行使用メモリ 34,688 KB
最終ジャッジ日時 2023-09-27 14:27:43
合計ジャッジ時間 19,377 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 81 ms
15,180 KB
testcase_01 AC 81 ms
15,180 KB
testcase_02 AC 81 ms
15,204 KB
testcase_03 AC 79 ms
15,180 KB
testcase_04 AC 79 ms
15,284 KB
testcase_05 AC 80 ms
15,060 KB
testcase_06 AC 79 ms
15,096 KB
testcase_07 AC 81 ms
15,092 KB
testcase_08 AC 80 ms
15,148 KB
testcase_09 AC 79 ms
15,192 KB
testcase_10 AC 78 ms
15,032 KB
testcase_11 AC 79 ms
15,212 KB
testcase_12 AC 81 ms
15,064 KB
testcase_13 AC 81 ms
15,180 KB
testcase_14 AC 79 ms
15,260 KB
testcase_15 AC 80 ms
15,188 KB
testcase_16 AC 78 ms
15,148 KB
testcase_17 AC 79 ms
15,144 KB
testcase_18 AC 81 ms
15,276 KB
testcase_19 AC 80 ms
15,032 KB
testcase_20 AC 81 ms
15,064 KB
testcase_21 AC 80 ms
15,032 KB
testcase_22 AC 82 ms
15,260 KB
testcase_23 AC 90 ms
15,036 KB
testcase_24 AC 90 ms
15,184 KB
testcase_25 AC 88 ms
15,148 KB
testcase_26 AC 84 ms
15,268 KB
testcase_27 AC 87 ms
15,032 KB
testcase_28 AC 83 ms
15,068 KB
testcase_29 AC 83 ms
15,212 KB
testcase_30 AC 87 ms
15,100 KB
testcase_31 AC 86 ms
15,044 KB
testcase_32 AC 86 ms
15,036 KB
testcase_33 TLE -
testcase_34 AC 665 ms
26,460 KB
testcase_35 TLE -
testcase_36 TLE -
testcase_37 AC 747 ms
26,280 KB
testcase_38 AC 792 ms
26,356 KB
testcase_39 AC 678 ms
26,524 KB
testcase_40 AC 710 ms
26,432 KB
testcase_41 AC 902 ms
30,544 KB
testcase_42 AC 524 ms
21,028 KB
testcase_43 TLE -
testcase_44 AC 533 ms
21,000 KB
testcase_45 TLE -
testcase_46 AC 406 ms
21,116 KB
testcase_47 AC 759 ms
26,364 KB
testcase_48 AC 79 ms
15,032 KB
testcase_49 AC 79 ms
15,152 KB
testcase_50 AC 80 ms
15,100 KB
testcase_51 AC 80 ms
15,124 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

N, H = gets.split.map &:to_i
A = gets.split.map &:to_i
A.each{H /= H.gcd(_1)}
puts H == 1 ? "YES" : "NO"
0