CodeMan
Home
Uva
AtCoder
Codechef
Codeforce
Hackerrank
LeetCode
Devskill
TopCoder
Spoj
Algorithm
Python3
Hackerearth
Uri
C++
Data Structure
Monday, September 16, 2019
Codeforce A. Levko and Table
#include
< iostream >
using
namespace
std
;
int
main
()
{
int
n
,
k
;
cin
>>
n
>>
k
;
for
(
int
i
=
0
;
i
<
n
;
i
++)
{
for
(
int
j
=
0
;
j
<
n
;
j
++)
{
cout
<<
((
i
==
j
)?
k
:
0
)
<<
" "
;
}
cout
<<
endl
;
}
return
0
;
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment