結果

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

ソースコード

diff #
raw source code

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