結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,452 KB
testcase_01 WA -
testcase_02 AC 73 ms
71,452 KB
testcase_03 AC 72 ms
71,304 KB
testcase_04 AC 76 ms
71,256 KB
testcase_05 AC 72 ms
71,336 KB
testcase_06 WA -
testcase_07 AC 72 ms
71,416 KB
testcase_08 WA -
testcase_09 AC 73 ms
71,344 KB
testcase_10 AC 71 ms
71,516 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 AC 71 ms
71,368 KB
testcase_16 AC 71 ms
71,488 KB
testcase_17 AC 72 ms
71,220 KB
testcase_18 AC 72 ms
71,316 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 AC 75 ms
71,220 KB
testcase_23 AC 73 ms
71,176 KB
testcase_24 AC 73 ms
71,328 KB
testcase_25 WA -
testcase_26 WA -
testcase_27 AC 71 ms
71,228 KB
testcase_28 WA -
testcase_29 WA -
testcase_30 WA -
testcase_31 WA -
権限があれば一括ダウンロードができます

ソースコード

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 or b==0) or (r==0 and b==0):
  print(x+(r+g+b)//5)
  exit()
print(x+(r+g+b)//4-f)
0