結果

問題 No.91 赤、緑、青の石
ユーザー あかりきあかりき
提出日時 2021-02-09 10:41:18
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 337 bytes
コンパイル時間 268 ms
コンパイル使用メモリ 87,056 KB
実行使用メモリ 71,576 KB
最終ジャッジ日時 2023-09-20 21:03:03
合計ジャッジ時間 3,821 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,320 KB
testcase_01 AC 72 ms
71,204 KB
testcase_02 AC 70 ms
71,312 KB
testcase_03 AC 70 ms
71,372 KB
testcase_04 AC 71 ms
71,460 KB
testcase_05 AC 72 ms
71,408 KB
testcase_06 WA -
testcase_07 AC 70 ms
71,280 KB
testcase_08 AC 71 ms
71,464 KB
testcase_09 AC 72 ms
71,524 KB
testcase_10 AC 70 ms
71,412 KB
testcase_11 AC 70 ms
71,204 KB
testcase_12 AC 72 ms
71,316 KB
testcase_13 AC 72 ms
71,424 KB
testcase_14 AC 70 ms
71,576 KB
testcase_15 AC 71 ms
71,416 KB
testcase_16 AC 70 ms
71,244 KB
testcase_17 AC 72 ms
71,468 KB
testcase_18 AC 72 ms
71,432 KB
testcase_19 AC 72 ms
71,316 KB
testcase_20 AC 72 ms
71,300 KB
testcase_21 AC 71 ms
71,300 KB
testcase_22 AC 71 ms
71,416 KB
testcase_23 AC 72 ms
71,408 KB
testcase_24 AC 72 ms
71,152 KB
testcase_25 AC 70 ms
71,244 KB
testcase_26 AC 71 ms
71,356 KB
testcase_27 AC 72 ms
71,080 KB
testcase_28 WA -
testcase_29 WA -
testcase_30 AC 70 ms
71,420 KB
testcase_31 AC 71 ms
71,448 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

r,g,b=map(int,input().split())
x=min(r,g,b)
r-=x;g-=x;b-=x
y=(r+g+b)//4
f=0
if (r==0 and max((g-y)//2,0)+max((b-y)//2,0)<y) or (g==0 and max((r-y)//2,0)+max((b-y)//2,0)<y) or (b==0 and max((r-y)//2,0)+max((g-y)//2,0)<y):
  f=1
if (r==0 and g==0) or (g==0 and b==0) or (r==0 and b==0):
  print(x+(r+g+b)//5)
  exit()
print(x+(r+g+b)//4-f)
0