結果

問題 No.1587 012 Matrix
ユーザー 👑 tatt61880tatt61880
提出日時 2021-07-08 22:46:42
言語 Kuin
(KuinC++ v.2021.9.17)
結果
AC  
実行時間 183 ms / 1,000 ms
コード長 341 bytes
コンパイル時間 1,953 ms
使用メモリ 6,284 KB
最終ジャッジ日時 2023-03-01 14:15:32
合計ジャッジ時間 5,316 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
使用メモリ
testcase_00 AC 2 ms
6,200 KB
testcase_01 AC 1 ms
6,280 KB
testcase_02 AC 2 ms
6,264 KB
testcase_03 AC 2 ms
6,284 KB
testcase_04 AC 2 ms
6,192 KB
testcase_05 AC 2 ms
6,168 KB
testcase_06 AC 2 ms
6,196 KB
testcase_07 AC 3 ms
6,268 KB
testcase_08 AC 3 ms
6,176 KB
testcase_09 AC 4 ms
6,256 KB
testcase_10 AC 8 ms
6,212 KB
testcase_11 AC 14 ms
6,208 KB
testcase_12 AC 25 ms
6,248 KB
testcase_13 AC 48 ms
6,172 KB
testcase_14 AC 69 ms
6,276 KB
testcase_15 AC 96 ms
6,192 KB
testcase_16 AC 124 ms
6,248 KB
testcase_17 AC 151 ms
6,280 KB
testcase_18 AC 165 ms
6,176 KB
testcase_19 AC 183 ms
6,172 KB
testcase_20 AC 177 ms
6,196 KB
testcase_21 AC 179 ms
6,200 KB
testcase_22 AC 2 ms
6,200 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

func main()
	var n: int :: cui@inputInt()
	if(n % 2 = 0)
		for y(1, n)
			var a: []int :: [2].repeat(n - y)
			if(y <= n / 2)
				do a :~ [0].repeat(y)
			else
				do a :~ [1] ~ [0].repeat(y - 1)
			end if
			for x(1, n)
				do cui@print("\{a[x - 1]}")
			end for
			do cui@print("\n")
		end for
		ret
	end if
	do cui@print("No\n")
end func
0