結果

問題 No.920 あかあお
ユーザー simamumusimamumu
提出日時 2019-11-08 21:22:30
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 35 ms / 2,000 ms
コード長 445 bytes
コンパイル時間 287 ms
コンパイル使用メモリ 12,016 KB
実行使用メモリ 10,700 KB
最終ジャッジ日時 2023-10-24 11:09:31
合計ジャッジ時間 1,426 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

from collections import defaultdict,deque
import sys,heapq,bisect,math,itertools,string,queue,copy,time
sys.setrecursionlimit(10**8)
INF = float('inf')
mod = 10**9+7
eps = 10**-7
def inp(): return int(sys.stdin.readline())
def inpl(): return list(map(int, sys.stdin.readline().split()))
def inpl_str(): return list(sys.stdin.readline().split())

X,Y,Z = inpl()
X,Y = min(X,Y), max(X,Y)

if Y - X < Z:
    print((X+Y+Z)//2)
else:
    print(X+Z)
0