2 条题解

  • 0
    @ 2025-1-5 19:58:47
    ---
    #include <iostream>
    #include <cstring>
    using namespace std;
    int main()
    {
        string f,g;
        string q = "真帅";
        int n;
    	cin>>g;
        g += q;
        cin >> n;
        while (n--)
        {
            cout << g << endl;
        }
        return 0;
    }
    来看看c++里面对于一些函数的应用吧,c语音的相关函数是不是让你头昏脑热哈哈哈
    ---
    
    • 0
      @ 2024-11-20 15:46:16

      #include<stdio.h>

      int main(){

      char s[10005];

      int n;

      scanf("%s %d",s,&n);

      for(int i=0;i<n;i++){

      printf("%s真帅\n",s);

      }

      return 0;
      

      }

      • 1

      信息

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