1 条题解

  • 0
    @ 2024-2-4 12:35:21

    简单,字符串模拟即可。

    #include <bits/stdc++.h>
    #define FOR(i, l, r) for(int i = l; i <= r; i++)
    using namespace std;
    
    int t, l;
    string s[105];
    
    int main() {
         cin >> t >> l;
         FOR(i, 1, t) cin >> s[i];
         sort(s + 1, s + t + 1);
         FOR(i, 1, t) cout << s[i];
         return 0;
    }
    
    
    • 1

    [ABC042B] 文字列大好きいろはちゃんイージー

    信息

    ID
    443
    时间
    2000ms
    内存
    256MiB
    难度
    1
    标签
    递交数
    25
    已通过
    7
    上传者