結果

問題 No.920 あかあお
ユーザー gemmarogemmaro
提出日時 2019-11-14 15:09:31
言語 Ruby
(3.3.0)
結果
AC  
実行時間 91 ms / 2,000 ms
コード長 165 bytes
コンパイル時間 279 ms
コンパイル使用メモリ 11,876 KB
実行使用メモリ 16,072 KB
最終ジャッジ日時 2023-10-24 11:39:53
合計ジャッジ時間 2,658 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

# frozen_string_literal: true

x, y, z = gets.chomp.split.map(&:to_i)
x, y = y, x if x > y

u = [x, y].min
t = [y - u, z].min

p u + [x - u + t, y].min + (z - t) / 2
0