Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
101959 Tom0 单词排序 C++ 通过 100 0 MS 256 KB 310 2023-09-11 15:20:28

Tests(6/6):


#include <iostream> #include <algorithm> using namespace std; typedef long long LL; string s[105]; int n; int main() { cin >> n; for (int i = 1; i <= n; i++) cin >> s[i]; sort(s + 1, s + n + 1); for (int i = 1; i <= n; i++) if (s[i] != s[i - 1]) cout << s[i] << endl; return 0; }


测评信息: