結果

問題 No.485 方程式のお勉強
ユーザー Takuya AkiyaTakuya Akiya
提出日時 2017-03-06 04:37:50
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 115 bytes
コンパイル時間 41 ms
コンパイル使用メモリ 11,548 KB
実行使用メモリ 15,404 KB
最終ジャッジ日時 2023-09-05 10:25:15
合計ジャッジ時間 2,385 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 83 ms
15,020 KB
testcase_02 AC 83 ms
15,092 KB
testcase_03 WA -
testcase_04 AC 83 ms
15,160 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 83 ms
15,284 KB
testcase_08 WA -
testcase_09 AC 84 ms
15,124 KB
testcase_10 AC 84 ms
15,036 KB
testcase_11 AC 82 ms
15,268 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 AC 81 ms
15,316 KB
testcase_15 AC 81 ms
15,084 KB
testcase_16 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

num, num2 = gets.chomp.split.map(&:to_i)
number = num2 % num
if number == 0
  puts num2 / num
else
  puts "ng"
end
0