回答編集履歴
1
出力のコードを修正
test
CHANGED
@@ -64,7 +64,15 @@
|
|
64
64
|
|
65
65
|
sort(begin(vec), end(vec));
|
66
66
|
|
67
|
+
for (auto it = begin(vec); it != end(vec); ++it) {
|
68
|
+
|
67
|
-
f
|
69
|
+
if (it != begin(vec)) cout << ',';
|
70
|
+
|
71
|
+
cout << *it;
|
72
|
+
|
73
|
+
}
|
74
|
+
|
75
|
+
cout << '\n';
|
68
76
|
|
69
77
|
}
|
70
78
|
|