結果
| 問題 |
No.1971 Easy Sudoku
|
| コンテスト | |
| ユーザー |
monnu
|
| 提出日時 | 2022-06-10 21:32:38 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 2,000 ms |
| コード長 | 355 bytes |
| コンパイル時間 | 4,018 ms |
| コンパイル使用メモリ | 229,936 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-09-21 06:00:51 |
| 合計ジャッジ時間 | 4,505 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 13 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#include <atcoder/all>
using namespace atcoder;
using ll=long long;
using Graph=vector<vector<int>>;
#define INF 1000000000000000000
#define MOD 998244353
#define MAX 500
int main(){
int N;
cin>>N;
for(int i=0;i<N;i++){
for(int j=0;j<N;j++){
cout<<(i+j)%N+1<<' ';
}
cout<<'\n';
}
}
monnu