結果

問題 No.91 赤、緑、青の石
ユーザー takeshiDtakeshiD
提出日時 2020-03-07 08:57:29
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 321 bytes
コンパイル時間 224 ms
コンパイル使用メモリ 12,800 KB
実行使用メモリ 16,128 KB
最終ジャッジ日時 2024-04-22 12:21:27
合計ジャッジ時間 7,260 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 28 ms
10,624 KB
testcase_08 AC 27 ms
10,624 KB
testcase_09 TLE -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
testcase_23 -- -
testcase_24 -- -
testcase_25 -- -
testcase_26 -- -
testcase_27 -- -
testcase_28 -- -
testcase_29 -- -
testcase_30 -- -
testcase_31 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

C = list(map(int, input().split()))
ans = 0
ans += min(C)
C = list(map(lambda x: x-ans, C))
C.sort(reverse=True) #descending
while C.count(0)==1:
    temp = min(C[0]//3, C[1])
    C[0] -= temp*3
    C[1] -= temp
    ans += temp
    C.sort(reverse=True) #descending
    
while C.count(1)==2:
    ans += C[0]//5

print(ans)
0