結果
問題 |
No.1169 Row and Column and Diagonal
|
ユーザー |
![]() |
提出日時 | 2020-08-14 22:08:34 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 328 bytes |
コンパイル時間 | 2,232 ms |
コンパイル使用メモリ | 191,704 KB |
最終ジャッジ日時 | 2025-01-12 23:57:17 |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | WA * 13 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; int temp=0; for(int i=1;i<=n;i++){ temp++; for(int j=1;j<=n;j++){ if(j != 1) cout<<" "; cout<<temp; if(j != n) temp--; if(temp==0){ temp=5; } } cout<<endl; } cout<<endl; return 0; }