34202023-02-27 13:43:43tothgergelyTáblajátékcsharpWrong answer 0/5027ms23444 KiB
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp2
{
    class Program
    {
        static void Main(string[] args)
        {
            int n;
            int i;
            int[] a = new int[10];
            n = int.Parse(Console.ReadLine());
            for (i = 0; n > 0; i++)
            {
                a[i] = n % 2;
                n = n / 2;
            }
            for (i = i - 1; i >= 0; i--)
            {
                Console.Write(a[i]);
            }
            Console.ReadKey();

        }
}   }
SubtaskSumTestVerdictTimeMemory
base0/50
1Wrong answer0/026ms20088 KiB
2Wrong answer0/025ms20732 KiB
3Wrong answer0/327ms21240 KiB
4Wrong answer0/326ms21428 KiB
5Wrong answer0/325ms21916 KiB
6Wrong answer0/325ms22148 KiB
7Wrong answer0/327ms22608 KiB
8Wrong answer0/326ms22248 KiB
9Wrong answer0/325ms22328 KiB
10Wrong answer0/325ms22396 KiB
11Wrong answer0/326ms22512 KiB
12Wrong answer0/327ms22640 KiB
13Wrong answer0/426ms23036 KiB
14Wrong answer0/425ms23200 KiB
15Wrong answer0/425ms23144 KiB
16Wrong answer0/425ms23136 KiB
17Wrong answer0/425ms23444 KiB