1 条题解

  • 0
    @ 2026-3-20 14:10:45
    #include <bits/stdc++.h>
    using namespace std;
    
    int main() {
    	ios::sync_with_stdio(false); cin.tie(nullptr);
    	int n; cin >> n;
    	set<string> s;
    	for (int i = 0; i < n;i ++) {
    		string name; cin >> name;
    		s.insert(name);
    	}
    	cout << s.size() << '\n';
    	for (auto name : s) cout << name << '\n';
    	return 0;
    }
    
    • 1

    信息

    ID
    213
    时间
    1000ms
    内存
    256MiB
    难度
    7
    标签
    (无)
    递交数
    16
    已通过
    10
    上传者