2008-10-17から1日間の記事一覧

JOI2007予選 問題6@C++(-21)

工事中のフラグを掛け算ではなくビット演算で管理してるのとかは気分。 #include <climits> #include <cstdio> #include <algorithm> #include <vector> using namespace std; int main(int argc,char* argv[]) { int a,b; scanf("%d %d\n",&a,&b); vector<vector<int> > mask_map(a+1,vector<int>(b+1,INT_MAX)); </int></vector<int></vector></algorithm></cstdio></climits>…

JOI2007予選 問題5@C++(-20)

予選当日はいちいち更新キューとか作ってやった気がする。馬鹿だったなあ自分。 #include <cstdio> #include <algorithm> #include <vector> using namespace std; struct item_pair { int battery; int motor; int cable; item_pair(int battery,int motor,int cable) : battery(batter</vector></algorithm></cstdio>…

あれいつの間にキノの旅XII出てたの(-19)

すぐ買わなければ。

JOI2007予選 問題4@C++(-18)

カードの状態を配列に記憶して、操作ごとに全部のカードを動かすアルゴリズムでもできるけど、今回は操作を配列に記憶して、カードごとに全部の操作を行うイメージのアルゴリズムにしてみた。時間計算量は変わらないし、配列一個で済む分こちらの方がシンプ…

感動して泣けるゲームかあ(-17)

1位 PS2 『ファイナルファンタジーX』 2位 Xbox 360他 『CLANNAD(クラナド)』 3位 PSP 『クライシス コア -ファイナルファンタジーVII-』 4位 PS2 『METAL GEAR SOLID3 SNAKE EATER』 5位 PSP他 『Kanon』 6位 PS2 『テイルズ オブ ジ アビス』 7位 PSP他 『…

そうだ(-16)

そうだ、絵を描こう。