結果

問題 No.1971 Easy Sudoku
コンテスト
ユーザー ID 21712
提出日時 2024-11-20 00:32:05
言語 Go
(1.26.1)
コンパイル:
env GOCACHE=/tmp go build _filename_
実行:
./Main
結果
AC  
実行時間 15 ms / 2,000 ms
コード長 231 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 21,929 ms
コンパイル使用メモリ 273,076 KB
実行使用メモリ 6,400 KB
最終ジャッジ日時 2026-05-14 03:44:07
合計ジャッジ時間 15,855 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge2_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 13
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

package main

import . "fmt"
import . "math/rand"

func main() {
	var n int
	Scan(&n)
	x:=Perm(n)
	y:=Perm(n)
	for _,r:=range y {
		for i,c:=range x {
			if i>0 {
				Print(" ")
			}
			v:=(c+r)%n+1
			Print(v)
		}
		Println()
	}
}
0