2 条题解

  • 0
    @ 2026-5-17 14:44:47
    #include<bits/stdc++.h>
    using namespace std;
    int main(){
        char c;
        int n; cin >> n;
        while(n--) cin >> c, cout << c << c;
        return 0;
    }
    • 0
      @ 2026-3-1 21:04:39
      #include <bits/stdc++.h>
      using namespace std;
      
      int main() {
         int N;
         string S;
         cin >> N >> S;
         for (int i = 0; i < N; i++) {
            cout << S[i] << S[i];
         }
         cout << endl;
      }
       
      
      • 1

      【字符串基础】字符串的输入输出

      信息

      ID
      9120
      时间
      2000ms
      内存
      1024MiB
      难度
      6
      标签
      递交数
      93
      已通过
      26
      上传者