C++競プロ学習日記(仮)

( 学習記録であり解説Blogではないです )

Life, the Universe, and Everything|Codeshef|beginner

CodeChef デビューしましたっ!(登録しただけ)
まずは Life, the Universe, and Everything (beginnerのtest用問題?)を提出して色々確認。

#include <bits/stdc++.h>
using namespace std;
struct cww{cww(){ios::sync_with_stdio(false);cin.tie(0);}}star;
int main()
{
    int N;
    while( cin >> N )
    {
        if( N == 42 ) break;
	cout << N << endl;
    }
    return 0;
}

ちゃんとC++14使えました!
beginner, easyの問題も多かったので学習用に解いていきたいと思ってます!
(contestは多分出ない....)