結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 TLE -
testcase_01 AC 3,492 ms
6,812 KB
testcase_02 AC 2,128 ms
6,944 KB
testcase_03 AC 3,857 ms
6,940 KB
testcase_04 AC 1,885 ms
6,940 KB
testcase_05 AC 4,582 ms
6,940 KB
testcase_06 AC 1,238 ms
6,940 KB
testcase_07 AC 10 ms
6,944 KB
testcase_08 AC 9 ms
6,940 KB
testcase_09 AC 9 ms
6,940 KB
testcase_10 AC 10 ms
6,944 KB
testcase_11 AC 1,297 ms
6,940 KB
testcase_12 AC 4,206 ms
6,940 KB
testcase_13 AC 4,613 ms
6,940 KB
testcase_14 AC 3,082 ms
6,940 KB
testcase_15 AC 4,952 ms
6,944 KB
testcase_16 AC 10 ms
6,940 KB
testcase_17 AC 10 ms
6,944 KB
testcase_18 AC 10 ms
6,944 KB
testcase_19 AC 9 ms
6,944 KB
testcase_20 AC 10 ms
6,944 KB
testcase_21 AC 9 ms
6,944 KB
testcase_22 AC 9 ms
6,944 KB
testcase_23 AC 9 ms
6,940 KB
testcase_24 AC 9 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