156672025-02-21 17:26:36AAaaaaKiváló SzámokcsharpRuntime error 0/10014ms2992 KiB
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace kivalo_szamok
{
    internal class Program
    {

        static void Main(string[] args)
        {
            string sor = Console.ReadLine();
            int n = int.Parse(sor);

            if (n == 1)
            {
                Console.WriteLine("-1");
            }
            else if (n % 2 == 0)
            {
                for (int i = 0; i < n / 2; i++)
                {
                    Console.Write("15");
                }
            }
            else if (n % 2 == 1)
            {
                Console.Write("111");
                for (int i = 0; i < (n - 3) / 2; i++)
                {
                    Console.Write("15");
                }
            }

        }
    }
}
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Runtime error14ms2992 KiB
subtask20/33
2Runtime error14ms2836 KiB
3Runtime error14ms2768 KiB
4Runtime error14ms2768 KiB
5Runtime error14ms2768 KiB
6Runtime error14ms2836 KiB
7Runtime error14ms2804 KiB
8Runtime error14ms2788 KiB
subtask30/33
9Runtime error14ms2804 KiB
10Runtime error14ms2780 KiB
11Runtime error14ms2524 KiB
12Runtime error14ms2740 KiB
13Runtime error14ms2792 KiB
14Runtime error14ms2860 KiB
15Runtime error14ms2752 KiB
16Runtime error14ms2848 KiB
17Runtime error14ms2780 KiB
18Runtime error14ms2548 KiB
19Runtime error14ms2848 KiB
20Runtime error14ms2780 KiB
subtask40/34
21Runtime error14ms2504 KiB
22Runtime error14ms2572 KiB
23Runtime error14ms2772 KiB
24Runtime error14ms2532 KiB
25Runtime error14ms2796 KiB
26Runtime error14ms2776 KiB
27Runtime error14ms2948 KiB
28Runtime error14ms2824 KiB
29Runtime error14ms2772 KiB
30Runtime error14ms2836 KiB
31Runtime error14ms2668 KiB
32Runtime error14ms2772 KiB
33Runtime error14ms2852 KiB