noshi91のメモ

データ構造のある風景

2020-03-01から1ヶ月間の記事一覧

AtCoder で rating が 2800 に到達しました

概要 到達当時の記録 AtCoder AtCoder Performances AtCoder Problems AtCoder Scores ライブラリ Library | This documentation is automatically generated by online-judge-verify-helper

競プロ用 C++ struct 超初級

概要 競プロ用の C++ ライブラリを作るための struct の使い方を説明する メンバ変数 struct を使うと、std::pair<int, int> と似たようなものを作ることが出来ます。 #include <iostream> struct t { int a; int b; }; int main() { t x; x.a = 1; x.b = 2; std::cout << x.a <<</iostream></int,>…