CodeMan
Home
Uva
AtCoder
Codechef
Codeforce
Hackerrank
LeetCode
Devskill
TopCoder
Spoj
Algorithm
Python3
Hackerearth
Uri
C++
Data Structure
Monday, September 16, 2019
Codeforce A. Vasya and Digital Root
#include
< iostream >
using
namespace
std
;
int
main
()
{
int
k
,
d
;
cin
>>
k
>>
d
;
if
(
d
==
0
and k
>
1
)
return
cout
<<
"No solution\n"
,
0
;
cout
<<
d
;
while
(--
k
)
cout
<<
0
;
return
0
;
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment