1 solutions

  • 0
    @ 2026-11-1 14:20:38

    #include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; int x=n/2+1,y=x; for (int i=1;i<=n;i++){ for(int j=1;j<=n;j++){ if(abs(i-x)+abs(j-y)==x-1){ cout<<"#"; } else{ cout<<"."; } } cout<<endl; } return 0; }

    Information

    ID
    3537
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    9
    Tags
    # Submissions
    9
    Accepted
    6
    Uploaded By