結果

問題 No.3232 Not Tic Tac Toe
ユーザー tokugh
提出日時 2025-08-15 21:43:15
言語 Julia
(2.11.2)
結果
WA  
実行時間 -
コード長 535 bytes
コンパイル時間 79 ms
コンパイル使用メモリ 7,588 KB
実行使用メモリ 308,488 KB
最終ジャッジ日時 2025-08-15 21:44:21
合計ジャッジ時間 52,441 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 2
other WA * 27
権限があれば一括ダウンロードができます

ソースコード

diff #

toI(s=readline()) = parse(Int,s)
toVI(s=readline()) = parse.(Int,split(s))
rep(f,n) = [f() for _ in 1:n]
@enum YN Yes=1 No=0

function main()
    h,w = toVI()
    res = solve(h,w)
    for col in eachcol(res)
        join(col) |> println
    end
end

function solve(h,w)
    mat = ['o' 'o' 'x' 'x'; 'x' 'x' 'o' 'o']
    res = Matrix{Char}(undef,w,h)
    for i in 1:h
        for j in 1:w
            res[j,i] = mat[mod1(i,2),mod1(j,4)]
        end
    end
    return res
end

@static if endswith(@__FILE__, PROGRAM_FILE)
    main()
end
0