| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 158269 | 王慕哲 | 方阵填数 | C | Compile Error | 0 MS | 0 KB | 705 | 2026-08-20 17:48:14 |
#include<bits/stdc++.h> using namespace std; int main(){ int N; cin>>N; int a[101][101]; int n=1; int t=0;b=N-1,l=0,r=N-1; while(n<=N*N){ for(int i=0;i<=b;i++){ a[i][b]=n; n++; } r--; for(int i=r;i>=0;i--){ a[b][i]=n; n++; } b--; for(int i=l;i>=0;i--){ a[i][l]=n; n++; } l++; for(int i=0;i<=t;i--){ a[t][j]; n++; } } for(int i=1;i<=N;i++){ for(int j=1;j<=N;j++){ cout<<a[i][j]<<""; } cout<<endl; } return 0; }
Main.c:1:24: fatal error: bits/stdc++.h: No such file or directory
#include
^
compilation terminated.