2008-12-01から1ヶ月間の記事一覧

ヘッドホン出力とライン出力の違いについて

http://oshiete1.goo.ne.jp/qa4464728.htmlなるほど

SRM431 DIV2 1000

A list of non-negative numbers is called satisfactory if the sum of the numbers in the list is equal to S and the product of the numbers is equal to P. Find a satisfactory list with the least possible number of elements, and return its siz…

SRM431 DIV2 250

A positive integer is called a mega cool number if its digits form an arithmetic progression. An arithmetic progression is a sequence of numbers in which the difference between any two consecutive numbers is the same. Return the number of …

SRM431 DIV2 500

問題 You are given a vector X containing the x-coordinates of several points. Each point starts at an infinitely high y-coordinate. Starting with the first point, each point falls down until it is either a distance of R away from a previou…

TopCoderで勉強

自分のレベルが低いのに、改めて気付かされました。 プログラマーを名乗るのが恥ずかしい。 まずは英語を勉強しないと。。。

いまさらscanf,getchar

C++

// 変数に代入された場合1以上の値が返る。代入されなかった場合は0。EOFは-1 cout << scanf("%f",&a) << endl; // EOFまで入力を受け付ける for (;n=getchar(),~n;) { for(;getchar==10;){}//改行まで読む }

MASMでコンパイル、ビルド方法

VS2005でビルドする方法のメモtest.asm ;*********************************************************** ;*Pentium プロセッサの特権命令以外をアセンブリの対象にします ;*********************************************************** .586 ;*************…

マルチプラットフォームライブラリ

SDL Allegro

Cygwin

C++

環境変数とかバイナリーパーサーとか色々なサイト参考にして設定したんだけど、 Eclipse+CDTでデバッグできない。。。やっぱパソコン買う

Linuxマシン

新しくwindowsマシンをドスパラで買って、今使ってるメインマシン(athlon64 3500)をLinuxマシンにしようと思ったんだが電気代かかりそうだし、そんなに使わないかもしれないのでとりあえず実験でcygwin入れてみました。・coLinuxも気になるなぁ。 http://sou…

在宅希望

在宅の仕事がしたい。

その他

開設してみました。 あああ