2 条题解

  • 1
    @ 2023-7-16 16:08:35

    #include<bits/stdc++.h> using namespace std; int a[1001][1001]; int main(){ int n,x,y; cin>>n; for(int i=1;i>0;i++){ cin>>x>>y; a[x][y]=1; if(x0 && y0) break; } for(int i=1;i<=n;i++){ for(int j=1;j<=n;j++){ cout<<setw(5)<<a[i][j]; } cout<<endl; } return 0; }

    信息

    ID
    465
    时间
    1000ms
    内存
    128MiB
    难度
    2
    标签
    递交数
    251
    已通过
    138
    上传者