結果

問題 No.920 あかあお
ユーザー simamumusimamumu
提出日時 2019-11-08 21:21:49
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 445 bytes
コンパイル時間 111 ms
コンパイル使用メモリ 11,168 KB
実行使用メモリ 10,132 KB
最終ジャッジ日時 2023-10-13 03:16:12
合計ジャッジ時間 1,814 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 30 ms
10,080 KB
testcase_01 AC 31 ms
9,960 KB
testcase_02 AC 30 ms
9,900 KB
testcase_03 AC 30 ms
10,068 KB
testcase_04 AC 31 ms
9,900 KB
testcase_05 AC 30 ms
10,044 KB
testcase_06 WA -
testcase_07 AC 31 ms
9,904 KB
testcase_08 AC 32 ms
9,960 KB
testcase_09 AC 31 ms
9,952 KB
testcase_10 AC 30 ms
10,000 KB
testcase_11 AC 30 ms
9,908 KB
testcase_12 WA -
testcase_13 WA -
権限があれば一括ダウンロードができます

ソースコード

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(Y+Z)
0