2017-07-01から1ヶ月間の記事一覧
centos6にglibc2.14をビルド 何かと必要になるアイツ centos6.5のglibcは2.12configureのときにlinuxbrewで新しいgccをインストールしていた場合はコケることになる. システムのgccを使うようにしてやればよい wget http://ftp.gnu.org/gnu/glibc/glibc-2.1…
Kagisys Kagisys | Aizu Online Judge n本の認証キーとm回の認証試行がある m回のループを回して各回で扉を開錠可能かどうか判定すればよい 扉の状態を保存するためにループの外側に変数openedがある //#define _GRIBCXX_DEBUG #include <bits/stdc++.h> # define rep(i, n)</bits/stdc++.h>…
税率変更 税率変更 | Aizu Online Judge 以下のように1つのループで税込み価格を探索しようとしたが失敗した for (int p1=1; p1<s; p1++) { int p2 = s-p1; } 税抜き価格で全探索する //#define _GRIBCXX_DEBUG #include <bits/stdc++.h> # define rep(i, n) for (int i = 0; i < (int)(n); i++) using namespace std; int main() { int x, y, s; while (cin >> x >></s;>…
Dynetのインストール gccはlinuxbrewで入れたものを使う % which gcc gcc (Homebrew gcc 5.3.0) 5.3.0 Copyright (C) 2015 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even …