結果
問題 | No.1971 Easy Sudoku |
ユーザー |
|
提出日時 | 2023-06-12 14:33:54 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 510 bytes |
コンパイル時間 | 1,425 ms |
コンパイル使用メモリ | 166,328 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-11 16:20:06 |
合計ジャッジ時間 | 2,030 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 13 |
ソースコード
#include <bits/stdc++.h>using namespace std;using ll = long long;using Graph = vector<vector<int>>;long long primeNumber(long long x) {bool fire = true;for(int i = 2; i <= sqrt(x); i++) {if(x % i == 0) {fire = false;}}return fire;}int main() {long long N; cin >> N;for(int i = 0; i < N; i++) {for(int j = 0; j < N; j++) {if((i + j) % N == 0) {cout << N << " ";}else {cout << (i + j) % N << " ";}}cout <<endl;}}