1 solutions

  • 0
    @ 2025-12-20 16:24:17
    #include<bits/stdc++.h>
    using namespace std;
    int main()
    {
    	int n;
    	cin>>n;
    	char x='A';
    	for(int i=1;i<=n;i++)
    	{
    		for(int j=1;j<=i;j++)
    		{
    			cout<<x;
    			x++;
    			if(x>'Z')
    			{
    				x='A';
    			}
    		}
    		cout<<endl;
    	}
    	return 0;
    }
    

    Information

    ID
    1157
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    7
    Tags
    # Submissions
    84
    Accepted
    22
    Uploaded By