Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
160554 李亭绪 拐角方阵 C++ Wrong Answer 1 MS 272 KB 297 2026-09-23 19:09:56

Tests(0/2):


Code:

#include<iostream> using namespace std; int main(){ int n,sum=0,b=0; cin>>n; for(int i=1;i<=n;i++){ cout<<1<<' '; if(i>1){ cout<<2<<' '; } if(i>2){ cout<<3<<' '; } for(int j=i;j<n;j++){ cout<<i<<' '; } cout<<endl; } }


Run Info:

------Input------
5
------Answer-----
1 1 1 1 1 1 2 2 2 2 1 2 3 3 3 1 2 3 4 4 1 2 3 4 5
------Your output-----
1 1 1 1 1 1 2 2 2 2 1 2 3 3 3 1 2 3 4 1 2 3