提出 #1549496
ソースコード 拡げる
input = gets
x, a, b = input.split(' ').map(&:to_i)
diff_a = (x - a) ** 2
diff_b = (x - b) ** 2
if diff_a < diff_b
puts 'A'
else
puts 'B'
end
提出情報
| 提出日時 | |
|---|---|
| 問題 | A - Meal Delivery |
| ユーザ | inohiro |
| 言語 | Ruby (2.3.3) |
| 得点 | 100 |
| コード長 | 161 Byte |
| 結果 | AC |
| 実行時間 | 7 ms |
| メモリ | 1788 KiB |
ジャッジ結果
| セット名 | Sample | All | ||||
|---|---|---|---|---|---|---|
| 得点 / 配点 | 0 / 0 | 100 / 100 | ||||
| 結果 |
|
|
| セット名 | テストケース |
|---|---|
| Sample | sample1.txt, sample2.txt |
| All | sample1.txt, sample2.txt, 1.txt, 2.txt, 3.txt, 4.txt, 5.txt, 6.txt, sample1.txt, sample2.txt |
| ケース名 | 結果 | 実行時間 | メモリ |
|---|---|---|---|
| 1.txt | AC | 6 ms | 1788 KiB |
| 2.txt | AC | 6 ms | 1788 KiB |
| 3.txt | AC | 7 ms | 1788 KiB |
| 4.txt | AC | 6 ms | 1788 KiB |
| 5.txt | AC | 7 ms | 1788 KiB |
| 6.txt | AC | 6 ms | 1788 KiB |
| sample1.txt | AC | 7 ms | 1788 KiB |
| sample2.txt | AC | 6 ms | 1788 KiB |