結果

問題 No.863 計算量
ユーザー wonda_t_coffeewonda_t_coffee
提出日時 2020-02-06 23:36:35
言語 Ruby
(3.3.0)
結果
AC  
実行時間 83 ms / 1,000 ms
コード長 198 bytes
コンパイル時間 409 ms
コンパイル使用メモリ 11,876 KB
実行使用メモリ 16,168 KB
最終ジャッジ日時 2023-10-25 22:45:33
合計ジャッジ時間 3,403 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

# だいたい  40倍くらいなら 1
# だいたい1600倍くらいなら 2
a = gets.chomp.to_f
b = gets.chomp.to_f

x = (b - a * 40).abs
y = (b - a * 1600).abs
if x < y
  puts 1
else
  puts 2
end
0