結果
問題 |
No.1169 Row and Column and Diagonal
|
ユーザー |
![]() |
提出日時 | 2020-08-14 22:13:21 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 421 bytes |
コンパイル時間 | 2,080 ms |
コンパイル使用メモリ | 190,812 KB |
最終ジャッジ日時 | 2025-01-13 00:02:06 |
ジャッジサーバー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=1; for(ll i=0;i<n;i++){ ll t=r; for(ll j=0;j<n;j++){ if(r>n) r=1; cout<<r<<" "; r++; } r=t+1; cout<<endl; } }