結果

問題 No.920 あかあお
ユーザー gemmarogemmaro
提出日時 2019-11-14 14:36:41
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 174 bytes
コンパイル時間 352 ms
コンパイル使用メモリ 11,900 KB
実行使用メモリ 16,124 KB
最終ジャッジ日時 2023-10-21 19:59:16
合計ジャッジ時間 2,101 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 83 ms
16,092 KB
testcase_01 AC 82 ms
16,092 KB
testcase_02 AC 84 ms
16,092 KB
testcase_03 AC 83 ms
16,092 KB
testcase_04 AC 83 ms
16,092 KB
testcase_05 AC 83 ms
16,092 KB
testcase_06 AC 84 ms
16,092 KB
testcase_07 AC 84 ms
16,092 KB
testcase_08 AC 83 ms
16,092 KB
testcase_09 AC 85 ms
16,092 KB
testcase_10 AC 86 ms
16,092 KB
testcase_11 AC 85 ms
16,092 KB
testcase_12 WA -
testcase_13 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

# frozen_string_literal: true

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