結果
問題 |
No.920 あかあお
|
ユーザー |
|
提出日時 | 2020-04-20 12:50:03 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 30 ms / 2,000 ms |
コード長 | 639 bytes |
コンパイル時間 | 261 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,624 KB |
最終ジャッジ日時 | 2024-10-06 08:36:23 |
合計ジャッジ時間 | 1,289 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 11 |
ソースコード
MOD = 10 ** 9 + 7 INF = 10 ** 20 import sys input = sys.stdin.readline sys.setrecursionlimit(100000000) from collections import defaultdict dy = (-1,0,1,0) dx = (0,1,0,-1) def main(): x,y,z = map(int,input().split()) if x < y: ans = x y -= x x = 0 if z > y: z -= y ans += y + z//2 y = 0 else: ans += z else: ans = y x -= y y = 0 if z > x: z -= x ans += x + z//2 x = 0 else: ans += z print(ans) if __name__ =='__main__': main()