1 solutions

  • 0
    @ 2025-6-6 19:58:31
    #include<bits/stdc++.h>
    using namespace std;
    int main()
    {
    	int n;
    	cin>>n;
    	for(int i=0;i<n;i++)
    	{
    
    		for(int j=0;j<n;j++)
    		{
    			int t=i+j;
    			t=t%26;
    			char c='A'+t;
    			cout<<c; 
    		}
    		cout<<endl;
    	}
    	return 0;
    }
    
    
    • 1

    Information

    ID
    1175
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    9
    Tags
    (None)
    # Submissions
    11
    Accepted
    5
    Uploaded By