要素数は任意
get<要素数>(配列)
tuple<int, int, int> A;
cin >> get<0>(A) >> get<1>(A) >> get<2>(A);
vector<tuple<double, int, int>> B;
cin >> p1 >> p2 >> p3;
B.push_back(make_tuple(p1, p2, p3));
sort(B.begin(), B.end());
Go to list of users who liked
More than 1 year has passed since last update.
要素数は任意
get<要素数>(配列)
tuple<int, int, int> A;
cin >> get<0>(A) >> get<1>(A) >> get<2>(A);
vector<tuple<double, int, int>> B;
cin >> p1 >> p2 >> p3;
B.push_back(make_tuple(p1, p2, p3));
sort(B.begin(), B.end());
Register as a new user and use Qiita more conveniently
Go to list of users who liked