結果
問題 |
No.91 赤、緑、青の石
|
ユーザー |
![]() |
提出日時 | 2017-07-28 11:32:01 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 465 bytes |
コンパイル時間 | 89 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-10-10 04:45:52 |
合計ジャッジ時間 | 2,077 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 25 WA * 3 |
ソースコード
# 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 L-=2*M N+=L//5 else: L1=L-M L1//=2 N+=L1 # print (N) L-=L1 M-=L1 L1*=2 L-=L1 L2=L//4 M2=M//4 N+=L2+M2 # print (N) L2*=3 L-=L2+M2 M-=M2 if L==3: N+=1 print (N)