結果

問題 No.1587 012 Matrix
ユーザー 👑 tatt61880tatt61880
提出日時 2021-07-08 22:46:42
言語 Kuin
(KuinC++ v.2021.9.17)
結果
AC  
実行時間 216 ms / 1,000 ms
コード長 341 bytes
コンパイル時間 2,300 ms
コンパイル使用メモリ 153,156 KB
実行使用メモリ 4,352 KB
最終ジャッジ日時 2023-10-14 18:36:44
合計ジャッジ時間 5,979 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,352 KB
testcase_01 AC 2 ms
4,352 KB
testcase_02 AC 2 ms
4,348 KB
testcase_03 AC 2 ms
4,348 KB
testcase_04 AC 2 ms
4,352 KB
testcase_05 AC 3 ms
4,348 KB
testcase_06 AC 3 ms
4,348 KB
testcase_07 AC 3 ms
4,348 KB
testcase_08 AC 3 ms
4,348 KB
testcase_09 AC 5 ms
4,348 KB
testcase_10 AC 9 ms
4,352 KB
testcase_11 AC 16 ms
4,348 KB
testcase_12 AC 31 ms
4,348 KB
testcase_13 AC 52 ms
4,348 KB
testcase_14 AC 79 ms
4,352 KB
testcase_15 AC 111 ms
4,352 KB
testcase_16 AC 142 ms
4,352 KB
testcase_17 AC 169 ms
4,348 KB
testcase_18 AC 189 ms
4,352 KB
testcase_19 AC 203 ms
4,348 KB
testcase_20 AC 214 ms
4,348 KB
testcase_21 AC 216 ms
4,348 KB
testcase_22 AC 2 ms
4,348 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