なんとな~くしあわせ?の日記

「そしてそれゆえ、知識そのものが力である」 (Nam et ipsa scientia potestas est.) 〜 フランシス・ベーコン

D

AtCoder - AtCoder Beginner Contest 012 (バスと避けられない運命) を解いてみた

前回の競プロ! 解法 Rubyによる解答 TLE D言語による解答 AC! 前回の競プロ! ダイクストラ法を学んでようやくスタート地点に立てました。ダイクストラ法については以下のエントリを参照。nantonaku-shiawase.hatenablog.com 解法 Rubyによる解答 TLE アル…

D言語でstatic constな関数を定義したかった

以下のようなコードを定義すると、新しいgdcではエラーとなる コード [Wandbox]三へ( へ՞ਊ ՞)へ ハッハッmelpon.org import std.stdio; void main() { const string data = test_for_const(); pragma(msg, data); } static const string test_for_const() { retu…

Debian wheezy with EmacsでD言語書く

表題通り、息抜きで他の言語に浮気してもいいよね Debian(Wheezy)のEmacs環境 stableだとemacs24が入っていないようなので、無理せずemacs23を使うapt-cache search emacs23 cowgirl:~# apt-cache search emacs23 haml-elisp - Emacs Lisp mode for the Haml…