2 solutions

  • -1
    @ 2026-10-7 15:20:50

    #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;
    

    }

    Information

    ID
    1175
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    6
    Tags
    (None)
    # Submissions
    152
    Accepted
    42
    Uploaded By