結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,408 KB
testcase_01 AC 71 ms
71,228 KB
testcase_02 AC 71 ms
71,200 KB
testcase_03 AC 70 ms
71,296 KB
testcase_04 AC 71 ms
71,200 KB
testcase_05 AC 71 ms
71,260 KB
testcase_06 WA -
testcase_07 AC 71 ms
71,380 KB
testcase_08 AC 71 ms
71,344 KB
testcase_09 AC 71 ms
71,292 KB
testcase_10 AC 72 ms
71,364 KB
testcase_11 AC 72 ms
71,364 KB
testcase_12 AC 72 ms
71,232 KB
testcase_13 AC 72 ms
71,024 KB
testcase_14 AC 71 ms
71,256 KB
testcase_15 AC 72 ms
71,064 KB
testcase_16 AC 71 ms
71,064 KB
testcase_17 AC 70 ms
71,160 KB
testcase_18 AC 72 ms
71,348 KB
testcase_19 AC 71 ms
71,200 KB
testcase_20 AC 70 ms
71,416 KB
testcase_21 AC 71 ms
71,220 KB
testcase_22 AC 71 ms
71,340 KB
testcase_23 AC 71 ms
71,420 KB
testcase_24 AC 72 ms
71,344 KB
testcase_25 AC 72 ms
71,304 KB
testcase_26 AC 72 ms
71,300 KB
testcase_27 AC 71 ms
71,292 KB
testcase_28 WA -
testcase_29 WA -
testcase_30 AC 72 ms
71,184 KB
testcase_31 AC 71 ms
71,424 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
print(x+(r+g+b)//4-f)
0