1 solutions

  • 0
    @ 2025-11-5 19:36:08

    C :

    #include<stdio.h>
    int main(){
      	int t, n;
      	scanf("%d", &t);
      while(t--) {
       	scanf("%d", &n);
        while(n--) printf("I love Acm!\n");
      }
     	return 0; 
    }
    

    C++ :

    #include<iostream>
    using namespace std;
    int main()
    {
        int T;
        cin>>T;
        while(T--)
        {
            int n;
            cin>>n;
            while(n--)
            {
                cout<<"I love Acm!"<<endl;
            }
        }
        return 0;
    }
    
    
    • 1

    Information

    ID
    19440
    Time
    1000ms
    Memory
    128MiB
    Difficulty
    (None)
    Tags
    # Submissions
    0
    Accepted
    0
    Uploaded By