[牛客]关于输入输出(stringsteam)

对输入的字符串进行排序后输出
打开以下链接可以查看正确的代码
#include "bits/stdc++.h"
using namespace std;

int main() {
vector s;
string str;
while(getline(cin, str)) {
stringstream ss(str);
while(getline(ss, str, ',')) {
s.emplace_back(str);
}
sort(s.begin(), s.end());
for(int i=0;i

[牛客]关于输入输出(stringsteam)最先出现在Python成神之路

版权声明:
作者:zhangchen
链接:https://www.techfm.club/p/25484.html
来源:TechFM
文章版权归作者所有,未经允许请勿转载。

THE END
分享
二维码
< <上一篇
下一篇>>