結果
問題 | No.1587 012 Matrix |
ユーザー |
|
提出日時 | 2021-07-08 22:53:08 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 15 ms / 1,000 ms |
コード長 | 402 bytes |
コンパイル時間 | 3,616 ms |
コンパイル使用メモリ | 191,204 KB |
最終ジャッジ日時 | 2025-01-22 19:02:15 |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 22 |
ソースコード
#include<bits/stdc++.h> #define int long long using namespace std; signed main(){ int N; cin>>N; for(int i=0;i<N;i++){ for(int j=0;j<N;j++){ if(i<N/2){ if(j+i>=N)cout<<"1"; else cout<<"0"; } else{ if(j+i>=N)cout<<"2"; else cout<<"1"; } } cout<<endl; } }