結果

問題 No.920 あかあお
ユーザー machoniumpmachoniump
提出日時 2024-02-24 17:54:57
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 245 bytes
コンパイル時間 249 ms
コンパイル使用メモリ 11,776 KB
実行使用メモリ 9,856 KB
最終ジャッジ日時 2024-02-24 17:54:59
合計ジャッジ時間 1,751 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

x,y,z=map(int,input().split())
ans=0
s=abs(y-x)
if abs(x-y)<z:
    if x<y:
        x+=s
        z-=s
    elif y<x:
        y+=s
        z-=s
else:
    if x<y:
        x+=z
        z=0
    elif y<x:
        y+=z
        z=0

print((x+y)//2+z//2)
0