アイデア

C

printf...print data with format scanf...scan data with format \n...new line scanfは入力された文字(Enterキー)をその場では受け取らない。 scanf("%s",name); scanf("%*c%c", ch); //代入抑止の*を加える コンソールの消去 #include <stdlib.h> system("cls"); //</stdlib.h>…

リスニングの弱点

多い間違い are を aに間違える 逆も然り t --> l p --> b とかの変化。 アクセントの位置を把握し切れていないので、違う意味の単語と捉えてしまう. e.g)metropolis 助動詞、冠詞等の聞き間違い to -->~~t for --> from on --> an on the --> and the and …

リスニングの弱点

多い間違い are を aに間違える 逆も然り t --> l p --> b とかの変化。 ある語句が'a'で始まっていれば、その直前の語句とリエゾンする可能性が高い students applied from our department to this company //student/sapplied... アクセントの位置を把握し…

数式をcellに入れずに値だけを結果的にセルに入れる.

Sub pr1() Cells(1, 2).Formula = "=SUM(A1:A20)" Cells(1, 2).value = Cells(1, 2) 'Cells(1,2) = Cells(1,2)でもOK End Sub

ID

線形代数と固有値問題 ひととおり線形代数を学んだ後によむといいかもしれない。できれば、関数解析をちょっとやった後で。スペクトル分解とかの所は結構細かいところまで乗ってるので便利。へぇ、こんな方法でとけるのか、と。でも説明丁寧かといわれるとそ…

ID

単語 rank3::1~~4 --> http://d.hatena.ne.jp/kenta11626918/20111012/1318401749 rank2 --> http://d.hatena.ne.jp/kenta11626918/20111006/1317882668 rank1 -->http://d.hatena.ne.jp/kenta11626918/20111017/1318821771 C34CAFDF85FFCEB9929CD40BD14E730…

リスニングの弱点

多い間違い are を aに間違える 逆も然り t --> l p --> b とかの変化。 アクセントの位置を把握し切れていないので、違う意味の単語と捉えてしまう. e.g)metropolis 助動詞、冠詞等の聞き間違い to -->~~t for --> from on --> an on the --> and the and …

リスニングの弱点

多い間違い are を aに間違える 逆も然り t --> l p --> b とかの変化。 アクセントの位置を把握し切れていないので、違う意味の単語と捉えてしまう. e.g)metropolis あいまい母音はuとか聞こえるので、何の単語か勘違いしてしまう。 rely //r[u]ly 助動詞…

問題セット

nPr, nCrをもとめる 483, 分母がNまでの分数を昇順にして、k番目の値を求める。 フィボナッチ数列1~nの平均を求める(平均、桁落ち) ファレイ数列を使えば楽. 出力系 "5878!!!"みたいな文字をParseする やや難(SRM304改題) 多角形が長さ1膨張したときの増…

htmlパース 実験

単語を解析したかったので、組んでみた. #include <iostream> #include <fstream> #include <sstream> using namespace std; int main() { cout << "ファイル名入力(拡張子込み)で入力してください." << endl; string filename; cin >> filename; ifstream ifs(filename.c_str()); stri</sstream></fstream></iostream>…

単語 backup

RPG的な動作 jolt 揺さぶる strain 引っ張る proceed 進む preceed 先立つ,先導する manipulate 操作する 後退 setback detain 引き留めるほしい 要求 pretension extort 強要する ゆずる demise concess 譲歩する 欲 avarice 貪欲 greed 貪欲 allure 魅惑…

SRM432 div2 medium

cnt["0001"] = 2; cnt["0010"] = 3; みたいに、集積. int mostLit(vector <string> initial, int K) { map<string, int> cnt; for(int i = 0; i < initial.size(); ++i) { cnt[initial[i]]++; } int res = 0; map<string, int>::iterator it; for(it = cnt.begin(); it != cnt.end(); it++) { </string,></string,></string>…

トレードオフ的な何か

逆順に並べたい 1 2 3 4 5 6 7 8 9 やり方としては2種類あって、 左端と右端を順番にswapするやり方と 新しく配列を用意してfor:i[n-1, 0]でnewarr[i]で格納する方法。 二つ目のやり方のほうがコードが見やすいが、newarrを新しく作らなければならないので…

発想の転換

計算機は小数点とか扱うの苦手なので、あまり÷(/)を使わない. できるだけ×をつかうと、int型のみで済む.doubleに変換しなくても良くなる. とくに、座標計算とか、角度もとめるとかはもろにそうで、 int x, y; ならば、 arg = atan2(y, x) とかとやるより…

端末の配置  本郷

以下の表では,ユーザ携帯端末接続環境のためのRJ-45コンセントを用意した席の数を示す項を「有線接続」,無線LANが使用できる場所を○×で示す項を「無線接続」と記す. 端末台数の後にある括弧内の記号は,入出力機器が設置されている端末があることを表して…

SRM465 div2 改題

2つの棟をたてるのではなく、与えられたすべての座標に塔をたてるときの場合の数はどうなるんだろう.

bitset使ってみた. combination::nCrの列挙

がんばって、Combinationの列挙をしてみた. #include #include #include #include #include using namespace std; long long mypow(int k, int n) { long long ans = 1; for(int i = 0; i > comb; long long sz = mypow(2, N); int begin = (1 tmp(i); vect…

SRM div2 500

一応自分が書いたコード #include #include #include #include #include #include #include using namespace std; class MovieSeating { private: long long permutation(int n, int r); public: long long getSeatings(int numFriends, vector hall) { int …

数系

double res; int t = (int)res; //切り下げ int m = (int)(res+0.5); //四捨五入 int r; if(res-t の ceil関数を使う. double ceil(double x) n-1 テスト用の最大値、最小値の算出 INF = 1 sqrt(A)をint型にしたいときの注意. もしかすると、sqrt(64) = 8.…