結果
問題 |
No.1169 Row and Column and Diagonal
|
ユーザー |
![]() |
提出日時 | 2020-08-14 22:15:17 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 422 bytes |
コンパイル時間 | 1,762 ms |
コンパイル使用メモリ | 167,052 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-10 15:34:26 |
合計ジャッジ時間 | 4,805 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 1 |
other | WA * 13 |
ソースコード
#include <bits/stdc++.h> using namespace std; #define ll long long #define tezz std::ios::sync_with_stdio(false);std::cout.tie(NULL);std:cin.tie(NULL); int main() { ll n; cin>>n; ll r=n; for(ll i=0;i<n;i++){ ll t=r; for(ll j=0;j<n;j++){ if(r<=0) r=n; cout<<r<<" "; r--; } r=t-1; cout<<endl; } }