結果

問題 No.920 あかあお
ユーザー komkompikomkompi
提出日時 2019-11-09 14:23:07
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 30 ms / 2,000 ms
コード長 170 bytes
コンパイル時間 78 ms
コンパイル使用メモリ 11,760 KB
実行使用メモリ 10,032 KB
最終ジャッジ日時 2023-10-24 11:37:08
合計ジャッジ時間 1,043 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 28 ms
10,032 KB
testcase_01 AC 28 ms
10,032 KB
testcase_02 AC 30 ms
10,032 KB
testcase_03 AC 29 ms
10,032 KB
testcase_04 AC 27 ms
10,032 KB
testcase_05 AC 27 ms
10,032 KB
testcase_06 AC 27 ms
10,032 KB
testcase_07 AC 27 ms
10,032 KB
testcase_08 AC 28 ms
10,032 KB
testcase_09 AC 27 ms
10,032 KB
testcase_10 AC 27 ms
10,032 KB
testcase_11 AC 27 ms
10,032 KB
testcase_12 AC 27 ms
10,032 KB
testcase_13 AC 26 ms
10,032 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# coding: utf-8
# Your code here!
X,Y,Z=map(int,input().split())
X,Y=min(X,Y),max(X,Y)

if abs(X-Y)>Z:
    print(X+Z)
    exit()
else:
    Z-=(Y-X)
    print(Y+Z//2)
    
0