Submission #236418

# Submission time Handle Problem Language Result Execution time Memory
236418 2020-06-02T05:55:29 Z kaplanbar Sequence (BOI14_sequence) C++14
0 / 100
5 ms 640 KB
// In the name of God

#include <bits/stdc++.h>

using namespace std;

int main() {
	ios_base::sync_with_stdio(false);
	cin.tie(0);

	// Subtask 3
	
	int k;
	cin >> k;

	vector<int> d(k);

	for(int i = 0; i < k; i++) cin >> d[i];

	for(int i = 1; i < k; i++) {

		assert(d[i] == d[i - 1]);

	}

	int val = 0;

	int p = 1;

	while(p < k) {
		val++;
		p *= 10;
	}


	if(d[0] == 0) {
		cout << 1;
	}

	cout << d[0];

	for(int i = 0; i < val; i++) cout << 0;
	

	return 0;
}
# Verdict Execution time Memory Grader output
1 Runtime error 5 ms 512 KB Execution killed with signal 11 (could be triggered by violating memory limits)
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 5 ms 512 KB Execution killed with signal 11 (could be triggered by violating memory limits)
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 4 ms 384 KB Output is correct
2 Incorrect 5 ms 384 KB Output isn't correct
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 5 ms 640 KB Execution killed with signal 11 (could be triggered by violating memory limits)
2 Halted 0 ms 0 KB -