結果

問題 No.91 赤、緑、青の石
ユーザー matrie
提出日時 2021-02-09 09:07:38
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
TLE  
実行時間 -
コード長 215 bytes
コンパイル時間 141 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 17,436 KB
最終ジャッジ日時 2024-07-06 14:30:06
合計ジャッジ時間 12,708 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 18 TLE * 4 -- * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

r,g,b=list(map(int,input().split()))
c=0
while r+g+b>2:
	if r*g*b>0:r-=1;g-=1;b-=1;c+=1
	else:
		m=max([r,g,b])
		if r==0:r=1
		elif g==0:g=1
		elif b==0:b=1
		if r==m:r-=2
		elif g==m:g-=2
		elif b==m:b-=2
print(c)
0