結果

問題 No.920 あかあお
ユーザー gemmarogemmaro
提出日時 2019-11-09 07:31:18
言語 Ruby
(3.3.0)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 142 bytes
コンパイル時間 426 ms
コンパイル使用メモリ 11,188 KB
実行使用メモリ 15,348 KB
最終ジャッジ日時 2023-10-14 11:03:53
合計ジャッジ時間 2,053 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 77 ms
15,336 KB
testcase_01 AC 76 ms
15,088 KB
testcase_02 AC 76 ms
15,292 KB
testcase_03 AC 76 ms
15,144 KB
testcase_04 AC 77 ms
15,180 KB
testcase_05 AC 80 ms
15,044 KB
testcase_06 AC 75 ms
15,088 KB
testcase_07 AC 76 ms
15,092 KB
testcase_08 AC 75 ms
15,164 KB
testcase_09 AC 78 ms
15,136 KB
testcase_10 AC 76 ms
15,348 KB
testcase_11 AC 76 ms
15,284 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 if x * y != 0
purple += (z - c) / 2 if c <= z

p purple
0