結果
| 問題 |
No.91 赤、緑、青の石
|
| ユーザー |
rocoder
|
| 提出日時 | 2017-07-28 13:00:20 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 434 bytes |
| コンパイル時間 | 335 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-10-10 04:46:51 |
| 合計ジャッジ時間 | 2,237 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 WA * 1 |
| other | AC * 11 WA * 17 |
ソースコード
# your code goes here
R,G,B=(int (i)for i in input ().split())
if R>=G:
L=R
M=G
else:
L=G
M=R
if M>=B:
N=B
else:
N=M
if L>=B:
M=B
else:
M=L
L=B
L-=N
M-=N
if L>3*M:
N+=M
# print(N)
L-=3*M
N+=L//5
else:
L1=L-M
L1//=2
N+=L1
# print(N)
L-=L1
L2=L//4
M2=M//4
N+=L2+M2
# print(N)
L-=L2
M-=M2
if L==3:
N+=1
print (N)
rocoder