結果

問題 No.1971 Easy Sudoku
ユーザー xsdxsd
提出日時 2022-07-10 22:46:04
言語 OCaml
(5.1.0)
結果
AC  
実行時間 5 ms / 2,000 ms
コード長 187 bytes
コンパイル時間 693 ms
コンパイル使用メモリ 19,936 KB
実行使用メモリ 5,488 KB
最終ジャッジ日時 2023-09-02 06:43:35
合計ジャッジ時間 2,416 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,380 KB
testcase_01 AC 2 ms
4,376 KB
testcase_02 AC 4 ms
4,652 KB
testcase_03 AC 3 ms
4,508 KB
testcase_04 AC 4 ms
4,672 KB
testcase_05 AC 2 ms
4,380 KB
testcase_06 AC 2 ms
4,380 KB
testcase_07 AC 5 ms
5,208 KB
testcase_08 AC 2 ms
4,384 KB
testcase_09 AC 3 ms
4,380 KB
testcase_10 AC 4 ms
4,428 KB
testcase_11 AC 2 ms
4,380 KB
testcase_12 AC 2 ms
4,380 KB
testcase_13 AC 5 ms
5,488 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

Scanf.scanf "%d" (fun n ->
    for i = 0 to n - 1 do
        for j = 0 to n - 1 do
            Printf.printf "%d " @@ ((i + j) mod n) + 1
        done;
        print_newline ()
    done
)
0