マトリョーシカ的日常

ワクワクばらまく明日のブログ。

2013-01-22から1日間の記事一覧

昨日の続き。

二進法をつかえば楽だね。 #line 1 "LotteryTicket.cpp" #include #include #include using namespace std; class LotteryTicket { public: string buy(int price,int b1,int b2,int b3,int b4) { //decimal -> binary int Bv[4]={b1,b2,b3,b4}; int biv[50]…