結果

問題 No.485 方程式のお勉強
ユーザー jiro8719jiro8719
提出日時 2018-07-19 14:51:54
言語 Ruby
(3.3.0)
結果
AC  
実行時間 82 ms / 2,000 ms
コード長 129 bytes
コンパイル時間 181 ms
コンパイル使用メモリ 11,412 KB
実行使用メモリ 15,316 KB
最終ジャッジ日時 2023-08-25 10:42:38
合計ジャッジ時間 2,568 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 78 ms
15,156 KB
testcase_01 AC 78 ms
15,080 KB
testcase_02 AC 79 ms
15,180 KB
testcase_03 AC 77 ms
15,020 KB
testcase_04 AC 82 ms
15,160 KB
testcase_05 AC 78 ms
15,168 KB
testcase_06 AC 78 ms
15,316 KB
testcase_07 AC 79 ms
15,200 KB
testcase_08 AC 78 ms
15,284 KB
testcase_09 AC 78 ms
15,300 KB
testcase_10 AC 79 ms
15,244 KB
testcase_11 AC 78 ms
15,260 KB
testcase_12 AC 78 ms
15,128 KB
testcase_13 AC 78 ms
15,112 KB
testcase_14 AC 80 ms
15,176 KB
testcase_15 AC 77 ms
15,156 KB
testcase_16 AC 77 ms
15,312 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

input = gets.split(" ").map(&:to_i)
ans = input[1] % input[0]
unless ans == 0
    puts "NO"
else
    puts input[1] / input[0]
end
0