| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 206251 | xiesrs | 单词排序 | C++ | Wrong Answer | 0 | 0 MS | 268 KB | 441 | 2026-03-19 22:17:08 |
#include<bits/stdc++.h> using namespace std; int main(){ ios_base::sync_with_stdio(false); cin.tie(nullptr);cout.tie(nullptr); int n; cin>>n; string t; getline(cin,t); getline(cin,t); t+=" "; vector<string> v; string s=""; for(auto ch:t){ if(ch==' '){ v.push_back(s); s=""; }else s+=ch; } cout<<v.size()<<"\n"; sort(v.begin(),v.end()); for(int i=0;i<v.size();i++)cout<<v[i]<<"\n"; return 0; }