結果

問題 No.863 計算量
ユーザー simansiman
提出日時 2020-07-19 16:41:12
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 137 bytes
コンパイル時間 459 ms
コンパイル使用メモリ 11,320 KB
実行使用メモリ 15,360 KB
最終ジャッジ日時 2023-08-22 10:05:14
合計ジャッジ時間 3,083 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 78 ms
15,324 KB
testcase_01 AC 77 ms
15,128 KB
testcase_02 AC 77 ms
15,132 KB
testcase_03 AC 77 ms
15,220 KB
testcase_04 AC 78 ms
15,208 KB
testcase_05 AC 76 ms
15,144 KB
testcase_06 AC 76 ms
15,072 KB
testcase_07 AC 77 ms
15,276 KB
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 79 ms
15,172 KB
testcase_12 AC 78 ms
15,268 KB
testcase_13 AC 79 ms
15,152 KB
testcase_14 WA -
testcase_15 AC 78 ms
15,116 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

A = gets.to_i
B = gets.to_i

a = Rational(A, 5_000).to_f
b = Rational(B, 200_000).to_f

if (a - b).abs <= 1.0
  puts 1
else
  puts 2
end
0