結果
| 問題 |
No.920 あかあお
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-11-12 06:58:14 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 49 ms / 2,000 ms |
| コード長 | 267 bytes |
| コンパイル時間 | 204 ms |
| コンパイル使用メモリ | 82,816 KB |
| 実行使用メモリ | 55,552 KB |
| 最終ジャッジ日時 | 2024-09-26 03:00:41 |
| 合計ジャッジ時間 | 1,386 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 11 |
ソースコード
from heapq import *
from itertools import *
from functools import *
from collections import *
import sys,math
input = sys.stdin.readline
X,Y,Z = map(int,input().split())
X,Y = max(X,Y),min(X,Y)
if Z < X - Y:
print(Z + Y)
else:
val = (X+Y+Z)//2
print(val)