へんてこのブログ

日々気づいたことや、最近やっていることを書いています

2012-07-01から1ヶ月間の記事一覧

はてなサマーインターン2012に参加します

今年のはてなサマーインターンに合格したので、参加してきます!! http://www.hatena.ne.jp/company/staff/internはてなの社員のみなさん、選んでくれてありがとうございます。参加コースはWebアプリケーション開発 実践コースですので、 1ヶ月ほど、8/10くら…

学内LANでのgithub利用まとめ(CUI版)

学内LANでのgithub利用まとめ(CUI版) リポジトリを最初から作る場合 githubにてリポジトリを作成しておく //proxy設定 $ git config --global http.proxy {proxy url}:{port} //普通のgit $ mkdir {リポジトリ名} $ cd {リポジトリ名} $ git init ファイル編…

学内においてのgithubからのclone

学内LAN環境においての、githubからのcloneのやり方です。 proxyを越えます。まず、--globalで.gitconfigに設定を追加する $ git config --global http.proxy {proxy url}:{port} あとは普通にhttpsでcloneしてあげると、上で設定したconfigが読み込まれる $…

学内からのgithubへのpush

学内のLANはproxyが設定されているため、普通にはgithubにpushできません。 ですので、proxyをgit config http.proxyで設定する必要があります。 調べたのでまとめてみます。gitの初期設定 $ git init git configでproxy情報を追加 $ git config http.proxy …

ICPC2012国内予選に参加しました

題名通り、先日行われたICPC2012国内予選に参加しました。 初のICPCだったので緊張しましたが、無事2問解けてよかったです。 ですが、3問解けそうだったので、次回の2013では、頑張って練習して5問以上解きたいです。提出解答: Problem A Problem B最後に結果…

ICPC2012国内予選 Problem B繰り返す10進数

Problem B繰り返す10進数 http://www.psg.cs.titech.ac.jp/icpc/icpc2012/contest/B_ja.html 解法:最初のinputをstringで受け取り、ソートして最小最大を求める #include<iostream> #include<vector> #include<string> #include<sstream> using namespace std; inline int toInt(string s) { int</sstream></string></vector></iostream>…

ICPC2012国内予選 Problem Aミレニアム

Problem Aミレニアム http://www.psg.cs.titech.ac.jp/icpc/icpc2012/contest/A_ja.html 解法:(1年1月1日~1000年1月1日までの日にち) - (1年1月1日~実際の入力された日にち) = 解答 #include<iostream> #include<vector> using namespace std; int main() { int X; for (int i=</vector></iostream>…

AOJ Volume11-1153

Problem A: 等しい合計点 http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=1153&lang=jp解法:一個づつ交換していって判定する #include <vector> #include <algorithm> #include <iostream> #include <cmath> using namespace std; int main() { int n,m; while (cin >> n >> m) { if(</cmath></iostream></algorithm></vector>…

SRM548 Div2

250 本当に久しぶりに250問題通りました。 嬉しいです。解法:回数数える includeとか省略 int minDucks(vector <int> duckTypes) { int result; if(duckTypes.size() == 1) return 1; SORT(duckTypes); vector<int> date,date2; for (int i=0; i < duckTypes.size(); i</int></int>…

AOJ Volume11-1147

Problem A: ICPC 得点集計ソフトウェア http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=1147&lang=jp解法:配列ぶち込んでソートする #include<iostream> #include<vector> #include<algorithm> #include<cmath> using namespace std; int main() { int n; while (cin >> n) { if(n ==</cmath></algorithm></vector></iostream>…

javascriptによる文書書き換え

javascriptによる文書書き換えです。任意のHPで、ブラウザのURL欄に以下の文字を入れエンターを押すと、HPの文字を任意に書き換えられます。javascript:document.body.contentEditable='true';void 0; 面白いですね。参考:http://d.hatena.ne.jp/hatenatech/…