印象に残った問題(TC編)
SRM553 Div2 Easy「PlatypusDuckAndBeaver」
全探索でも十分間に合うが、算数の問題として解ける。
その結果↓
class PlatypusDuckAndBeaver{
public:
int minimumAnimals(int webbedFeet, int duckBills, int beaverTails){
return webbedFeet/2-beaverTails;
}
};