156662025-02-21 17:26:22lacitoKiváló SzámokcsharpRuntime error 0/10014ms3024 KiB
using System;


namespace Program
{
    public class Program
    {
        static int Beolvas()
        {
            string sor = Console.ReadLine();
            int N = int.Parse(sor);
            return N;
        }
        static int Feldolgoz(int N)
        {
            if (N % 2 == 0)
            {
                for(int i = 0; i < N/2; i++)
                {
                    Console.Write("1 5 ");
                }
            }
            else
            {
                for (int i = 0; i < (N-3)/2; i++)
                {
                    Console.Write("1 5 ");
                }
                Console.WriteLine("1 1 1");
            }
            return N;
            
        }
        static void Main(string[] args)
        {
            int N = Beolvas();
            Feldolgoz(N);
        }
    }
}
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Runtime error14ms2768 KiB
subtask20/33
2Runtime error14ms2772 KiB
3Runtime error14ms2744 KiB
4Runtime error14ms2684 KiB
5Runtime error14ms2808 KiB
6Runtime error14ms3024 KiB
7Runtime error14ms2780 KiB
8Runtime error14ms2780 KiB
subtask30/33
9Runtime error14ms2872 KiB
10Runtime error14ms2780 KiB
11Runtime error14ms2808 KiB
12Runtime error14ms2628 KiB
13Runtime error14ms2788 KiB
14Runtime error14ms2592 KiB
15Runtime error14ms2656 KiB
16Runtime error14ms2736 KiB
17Runtime error14ms2972 KiB
18Runtime error14ms2904 KiB
19Runtime error14ms2820 KiB
20Runtime error14ms2512 KiB
subtask40/34
21Runtime error14ms2488 KiB
22Runtime error14ms2564 KiB
23Runtime error14ms2828 KiB
24Runtime error14ms2940 KiB
25Runtime error14ms2776 KiB
26Runtime error14ms2528 KiB
27Runtime error14ms2708 KiB
28Runtime error14ms2776 KiB
29Runtime error14ms2528 KiB
30Runtime error14ms2944 KiB
31Runtime error14ms2756 KiB
32Runtime error14ms2816 KiB
33Runtime error14ms2744 KiB