<大小比較(優先順位)>
1つ目の要素 -> 2つ目の要素
pair<int, string> a[5];
cin >> a[0].second;
cin >> a[0].first;
sort(a, a + N, greater<pair<int, string>>());
Go to list of users who liked
More than 1 year has passed since last update.
<大小比較(優先順位)>
1つ目の要素 -> 2つ目の要素
pair<int, string> a[5];
cin >> a[0].second;
cin >> a[0].first;
sort(a, a + N, greater<pair<int, string>>());
Register as a new user and use Qiita more conveniently
Go to list of users who liked