結果

問題 No.91 赤、緑、青の石
ユーザー matrie
提出日時 2021-02-10 00:38:12
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 320 bytes
コンパイル時間 134 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-07-07 05:56:39
合計ジャッジ時間 1,810 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 25 WA * 3
権限があれば一括ダウンロードができます

ソースコード

diff #

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