結果

問題 No.91 赤、緑、青の石
コンテスト
ユーザー yamanchu3776
提出日時 2017-08-07 00:56:30
言語 PyPy2
(7.3.15)
結果
RE  
実行時間 -
コード長 280 bytes
コンパイル時間 193 ms
コンパイル使用メモリ 77,976 KB
最終ジャッジ日時 2025-12-04 00:26:45
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample RE * 4
other RE * 28
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

# coding: UTF-8

rgb = list(map(int, input().split()))

num = 0
while True:
	mxi = max(rgb)
	mni = min(rgb)
	if mxi - mni == 1:
		num = mni
		break
	for i in range( len(rgb) ):
		if mxi == rgb[i]:
			mx = i
		if mni == rgb[i]:
			mn = i
	rgb[mx] -= 2
	rgb[mn] += 1

print min(rgb)
0