結果

問題 No.91 赤、緑、青の石
コンテスト
ユーザー matrie
提出日時 2021-02-10 00:38:12
言語 Python3
(3.14.3 + numpy 2.4.4 + scipy 1.17.1)
コンパイル:
python3 -mpy_compile _filename_
実行:
python3 _filename_
結果
WA  
実行時間 -
コード長 320 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 476 ms
コンパイル使用メモリ 20,828 KB
実行使用メモリ 15,360 KB
最終ジャッジ日時 2026-03-28 21:00:55
合計ジャッジ時間 5,049 ms
ジャッジサーバーID
(参考情報)
judge1_0 / judge2_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 26 WA * 3
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

L=sorted(map(int,input().split()))
#print(L)
c=L[0]
L=[i-c for i in L]
#print(L,c)
m=min(L[2]-L[1],L[1]*2)//2
L=sorted([m,L[1],L[2]-m*2])
#print(L,c)
if min(L)==L[0]:
	c+=L[0]
	L=[i-L[0] for i in L]
#print(L,c)
m=L[1]//2
m-=m%2
L=[m,L[1]-m,L[2]-m]
#print(L,c)
c+=L[0]
L=[i-m for i in L]
if L[2]>2:c+=1
#print(L)
print(c)
0