2010-10-21から1日間の記事一覧

SRM485 DIv2 Easy(250) MicrowaveSelling

MicrowaveSelling int attract( int n ) { int c = 0; for ( ; n%10==9; n/=10 ) c++; return c; } class MicrowaveSelling{public: int mostAttractivePrice( int minPrice, int maxPrice ) { int ans = 0; int att = -1; for ( int i=maxPrice; i>=minPric…

SRM485

Easy (250) 0 System Test Failed。簡単な解き方に気付かなかったとはいえミスしなければ通っていた。残念。 Medium (500) 225.25 Hard (1000) 0 Challenge +50 Mediumで幅が2の場合に探索している人が居たので撃墜。 結果 1710 → 1839 満足。