整数 n が与えられた時、以下の様な1と0を含むn×nの行列を作成しましょう。a(1,1) は1にする必要があります。
例:
入力 n = 5 出力 a が [1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1]
日本語での出題ありがとうございます(うれし涙)
1786 Solvers
Celsius to Fahrenheit converter
280 Solvers
Find the index of the largest value in any vector X=[4,3,4,5,9,12,0,4.....5]
230 Solvers
Is this triangle right-angled?
1918 Solvers
363 Solvers