結果

問題 No.882 約数倍数
ユーザー wonda_t_coffeewonda_t_coffee
提出日時 2020-02-04 23:44:53
言語 Ruby
(3.3.0)
結果
AC  
実行時間 83 ms / 500 ms
コード長 110 bytes
コンパイル時間 55 ms
コンパイル使用メモリ 11,860 KB
実行使用メモリ 16,052 KB
最終ジャッジ日時 2023-10-21 06:42:00
合計ジャッジ時間 2,183 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 77 ms
16,052 KB
testcase_01 AC 72 ms
16,052 KB
testcase_02 AC 75 ms
16,052 KB
testcase_03 AC 76 ms
16,052 KB
testcase_04 AC 74 ms
16,052 KB
testcase_05 AC 73 ms
16,052 KB
testcase_06 AC 76 ms
16,052 KB
testcase_07 AC 78 ms
16,052 KB
testcase_08 AC 74 ms
16,052 KB
testcase_09 AC 75 ms
16,052 KB
testcase_10 AC 73 ms
16,052 KB
testcase_11 AC 74 ms
16,052 KB
testcase_12 AC 83 ms
16,048 KB
testcase_13 AC 81 ms
16,052 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

a, b = gets.chomp.split.map(&:to_i)
b.step(a, b) do |i|
  next if a % i > 0

  puts "YES"
  exit
end
puts "NO"
0