範囲for文というループの書き方を知らなかったのでメモ. 参考 atcoder.jp 上記サイトからの引用 #include <bits/stdc++.h> using namespace std; int main() { vector<int> a = {1, 3, 2, 5}; for (int x : a) { cout << x << endl; } } 1 3 2 5 範囲for文はコンテナと呼ばれる</int></bits/stdc++.h>…
Quote saved.
Login to quote this blog
Failed to save quote. Please try again later.
You cannot quote because this article is private.