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

SRM469 Div1 Easy(250) TheMoviesLevelOneDivOne

TheMoviesLevelOneDivOne並んで座れない席を数える。 #include <vector> #include <utility> #include <set> using namespace std; class TheMoviesLevelOneDivOne { public: long long find( int n, int m, vector <int> row, vector <int> seat ); }; long long TheMoviesLevelOneDivOne::f</int></int></set></utility></vector>…

SRM469 Div2 Medium(600) TheMoviesLevelTwoDivTwo

TheMoviesLevelTwoDivTwo並べ方を全て試す。 #include <vector> #include <algorithm> using namespace std; class TheMoviesLevelTwoDivTwo { public: vector <int> find( vector <int> length, vector <int> scary ); }; vector <int> TheMoviesLevelTwoDivTwo::find( vector <int> length, vector <int> sca</int></int></int></int></int></int></algorithm></vector>…

SRM469 Div2 Easy(250) TheMoviesLevelOneDivTwo

TheMoviesLevelOneDivTwo #include <vector> using namespace std; class TheMoviesLevelOneDivTwo { public: int find( int n, int m, vector <int> row, vector <int> seat ); }; int TheMoviesLevelOneDivTwo::find( int n, int m, vector <int> row, vector <int> seat ) { vector<vector<bool> > </vector<bool></int></int></int></int></vector>…

SRM469

旅行中のため不参加。