Submission #38564

# Submission time Handle Problem Language Result Execution time Memory
38564 2018-01-04T13:11:46 Z Waschbar Sequence (BOI14_sequence) C++14
0 / 100
0 ms 2016 KB
#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 -