結果

問題 No.91 赤、緑、青の石
ユーザー yamanchu3776yamanchu3776
提出日時 2017-08-07 00:58:31
言語 Python2
(2.7.18)
結果
TLE  
実行時間 -
コード長 267 bytes
コンパイル時間 434 ms
コンパイル使用メモリ 6,944 KB
実行使用メモリ 13,220 KB
最終ジャッジ日時 2024-04-20 04:07:10
合計ジャッジ時間 53,253 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 TLE -
testcase_01 AC 3,407 ms
6,812 KB
testcase_02 AC 2,143 ms
6,944 KB
testcase_03 AC 3,867 ms
6,940 KB
testcase_04 AC 1,871 ms
6,940 KB
testcase_05 AC 4,599 ms
6,940 KB
testcase_06 WA -
testcase_07 AC 9 ms
6,944 KB
testcase_08 WA -
testcase_09 AC 9 ms
6,940 KB
testcase_10 WA -
testcase_11 AC 1,301 ms
6,940 KB
testcase_12 AC 4,253 ms
6,940 KB
testcase_13 AC 4,608 ms
6,940 KB
testcase_14 AC 3,082 ms
6,940 KB
testcase_15 TLE -
testcase_16 WA -
testcase_17 WA -
testcase_18 AC 10 ms
6,944 KB
testcase_19 AC 10 ms
6,940 KB
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 AC 9 ms
6,944 KB
testcase_24 AC 10 ms
6,940 KB
testcase_25 TLE -
testcase_26 -- -
testcase_27 -- -
testcase_28 -- -
testcase_29 -- -
testcase_30 -- -
testcase_31 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

rgb = list(map(int, raw_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