121462024-12-04 12:35:39TortelliniJrKiváló Számokcpp17Accepted 100/10014ms1392 KiB
#include <iostream>
using namespace std;
int main()
{
	ios::sync_with_stdio(0);
	cin.tie(0);
    int n;
    cin >> n;
	if (n == 1)
	{
		cout << "-1" << endl;;
		return 0;
	}
	else if (n % 2 == 0)
	{
		for (int i = 0; i < n / 2; i++)
		{
			cout << "15";
		}
		cout << endl;
		return 0;
	}
	else
	{
		for (int i = 0; i < (n - 3) / 2; i++)
		{
			cout << "15";
		}
		cout << "111" << endl;
		return 0;
	}
}
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Accepted1ms320 KiB
subtask233/33
2Accepted1ms320 KiB
3Accepted1ms320 KiB
4Accepted1ms320 KiB
5Accepted1ms320 KiB
6Accepted1ms320 KiB
7Accepted1ms500 KiB
8Accepted1ms320 KiB
subtask333/33
9Accepted4ms568 KiB
10Accepted7ms824 KiB
11Accepted8ms836 KiB
12Accepted7ms884 KiB
13Accepted8ms828 KiB
14Accepted4ms752 KiB
15Accepted2ms320 KiB
16Accepted4ms572 KiB
17Accepted6ms636 KiB
18Accepted8ms824 KiB
19Accepted3ms568 KiB
20Accepted10ms1080 KiB
subtask434/34
21Accepted14ms1340 KiB
22Accepted4ms568 KiB
23Accepted14ms1336 KiB
24Accepted14ms1392 KiB
25Accepted10ms1084 KiB
26Accepted6ms568 KiB
27Accepted12ms1080 KiB
28Accepted10ms1036 KiB
29Accepted2ms320 KiB
30Accepted8ms824 KiB
31Accepted8ms1080 KiB
32Accepted1ms320 KiB
33Accepted2ms392 KiB