#include <bits/stdc++.h>
using namespace std;
int main() {
int k, x, ans;
cin >> k >> x;
if(k == 1){
cout << x; return 0;
}
ans = 1;
if(x == 1) k--;
while(k > 0){
k /= 10;
ans *= 10;
}
if(x != 0)
ans *= x;
else
ans *= 10;
cout << ans;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
2016 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
2016 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
2016 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
2016 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |