Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
341018 马圣洁 【C4-T】拐角VIII C++ 通过 100 3 MS 240 KB 261 2025-08-15 21:53:21

Tests(1/1):


#include<bits/stdc++.h> using namespace std; int n,m,a[15][15],b[15][15]; int main(){ cin>>n; for(int j=1;j<=n;j++){ for(int i=n;i>=1;i--){ if(i>=j) a[i][j]=i; else a[i][j]=j; cout<<setw(3)<<a[i][j]; } cout<<endl; } return 0; }


测评信息: