結果

問題 No.91 赤、緑、青の石
ユーザー roiti46roiti46
提出日時 2014-12-07 19:51:04
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 338 bytes
コンパイル時間 723 ms
コンパイル使用メモリ 6,528 KB
実行使用メモリ 6,152 KB
最終ジャッジ日時 2023-09-02 09:31:56
合計ジャッジ時間 13,688 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 799 ms
5,952 KB
testcase_01 AC 527 ms
5,852 KB
testcase_02 AC 312 ms
5,868 KB
testcase_03 AC 602 ms
5,856 KB
testcase_04 AC 292 ms
5,888 KB
testcase_05 AC 698 ms
5,896 KB
testcase_06 WA -
testcase_07 AC 11 ms
5,940 KB
testcase_08 AC 11 ms
5,848 KB
testcase_09 AC 11 ms
5,952 KB
testcase_10 AC 11 ms
5,948 KB
testcase_11 AC 195 ms
6,100 KB
testcase_12 AC 638 ms
5,924 KB
testcase_13 AC 741 ms
5,992 KB
testcase_14 AC 460 ms
5,940 KB
testcase_15 AC 770 ms
5,992 KB
testcase_16 AC 11 ms
6,056 KB
testcase_17 AC 11 ms
6,000 KB
testcase_18 AC 11 ms
5,936 KB
testcase_19 AC 11 ms
6,104 KB
testcase_20 AC 11 ms
5,884 KB
testcase_21 WA -
testcase_22 WA -
testcase_23 AC 12 ms
6,060 KB
testcase_24 AC 11 ms
5,852 KB
testcase_25 AC 1,213 ms
6,096 KB
testcase_26 AC 1,124 ms
5,936 KB
testcase_27 WA -
testcase_28 AC 56 ms
5,848 KB
testcase_29 AC 113 ms
5,920 KB
testcase_30 AC 729 ms
5,996 KB
testcase_31 AC 1,073 ms
5,884 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

R,G,B = map(int,raw_input().split())
M = min(R,G,B)
R,G = sorted([R-M,G-M,B-M],reverse = True)[:2]
ans = M
while 1:
    if R >= G > 0 and R >= 3  : R -= 3; G -= 1
    elif G >= R > 0 and G >= 3: R -= 1;G -= 3
    elif G == 0 and R >= 6    : R -= 5
    elif R == 0 and G >= 6    : G -= 5
    else: break
    ans += 1
print ans
0