結果

問題 No.920 あかあお
ユーザー gemmarogemmaro
提出日時 2019-11-08 22:11:58
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 128 bytes
コンパイル時間 276 ms
コンパイル使用メモリ 11,248 KB
実行使用メモリ 15,348 KB
最終ジャッジ日時 2023-10-13 03:54:58
合計ジャッジ時間 2,778 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 81 ms
15,116 KB
testcase_01 AC 80 ms
15,104 KB
testcase_02 AC 79 ms
15,048 KB
testcase_03 AC 79 ms
15,128 KB
testcase_04 AC 79 ms
15,092 KB
testcase_05 AC 81 ms
15,216 KB
testcase_06 WA -
testcase_07 AC 80 ms
15,260 KB
testcase_08 AC 80 ms
15,348 KB
testcase_09 AC 80 ms
15,204 KB
testcase_10 AC 80 ms
15,264 KB
testcase_11 AC 80 ms
15,336 KB
testcase_12 WA -
testcase_13 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

x, y, z = gets.chomp.split.map &:to_i

purple = [x, y].min
c = (x - y).abs
purple += c
purple += (z - c) / 2 if c <= z

p purple
0