yakataの情報奮闘記

プログラミングの話をします

2019-01-08から1日間の記事一覧

C++の標準入力のライブラリコード

前回のC++で標準入力する色々を競技プログラミング用に改定した。 using namespace std;を使っているので、その他の利用は推奨しない #include <iostream> #include <string> #include <sstream> #include <vector> using namespace std; vector<int> input_int_one_line() { // 1行を空白で分割して</int></vector></sstream></string></iostream>…