結果

問題 No.780 オフ会
ユーザー kl_tomasonkl_tomason
提出日時 2019-01-11 21:36:11
言語 Ruby
(3.1.1p18 )
結果
AC  
実行時間 75 ms / 2,000 ms
コード長 124 bytes
コンパイル時間 229 ms
使用メモリ 13,996 KB
最終ジャッジ日時 2023-01-06 09:50:06
合計ジャッジ時間 3,113 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
使用メモリ
testcase_00 AC 73 ms
13,868 KB
testcase_01 AC 73 ms
13,984 KB
testcase_02 AC 73 ms
13,856 KB
testcase_03 AC 74 ms
13,808 KB
testcase_04 AC 73 ms
13,840 KB
testcase_05 AC 74 ms
13,868 KB
testcase_06 AC 74 ms
13,904 KB
testcase_07 AC 74 ms
13,972 KB
testcase_08 AC 75 ms
13,948 KB
testcase_09 AC 73 ms
13,996 KB
testcase_10 AC 73 ms
13,932 KB
testcase_11 AC 74 ms
13,948 KB
testcase_12 AC 74 ms
13,800 KB
testcase_13 AC 74 ms
13,804 KB
testcase_14 AC 73 ms
13,824 KB
testcase_15 AC 74 ms
13,844 KB
testcase_16 AC 73 ms
13,844 KB
testcase_17 AC 73 ms
13,972 KB
testcase_18 AC 72 ms
13,728 KB
testcase_19 AC 73 ms
13,796 KB
testcase_20 AC 73 ms
13,956 KB
testcase_21 AC 72 ms
13,952 KB
testcase_22 AC 72 ms
13,872 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

A, B = gets.split.map &:to_i

All_A = A + 1

if All_A <= B then
    puts "YES"
else
    puts "NO"
end

puts (All_A - B).abs
0