結果
| 問題 |
No.91 赤、緑、青の石
|
| ユーザー |
steek79
|
| 提出日時 | 2015-10-16 15:40:54 |
| 言語 | Python2 (2.7.18) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 306 bytes |
| コンパイル時間 | 145 ms |
| コンパイル使用メモリ | 7,068 KB |
| 実行使用メモリ | 13,088 KB |
| 最終ジャッジ日時 | 2024-07-21 16:50:50 |
| 合計ジャッジ時間 | 12,655 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 17 TLE * 5 -- * 6 |
ソースコード
ingre = map(int, raw_input().split())
ans = 0
while True:
make = min(ingre)
ans += make
ingre = [i - make for i in ingre]
if min(ingre)==0:
if sum(ingre) <3: break
else:
ingre[ingre.index(max(ingre))] -= 2
ingre[ingre.index(0)] += 1
print ans
steek79