結果

問題 No.91 赤、緑、青の石
ユーザー takeshiD
提出日時 2020-03-07 08:57:29
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 321 bytes
コンパイル時間 123 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 17,568 KB
最終ジャッジ日時 2024-10-14 11:46:08
合計ジャッジ時間 7,282 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 TLE * 1 -- * 1
other WA * 7 -- * 21
権限があれば一括ダウンロードができます

ソースコード

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