34172023-02-27 13:42:51tothgergelyTáblajátékcsharpWrong answer 0/5027ms23696 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/027ms20384 KiB
2Wrong answer0/026ms20916 KiB
3Wrong answer0/326ms21216 KiB
4Wrong answer0/326ms21396 KiB
5Wrong answer0/326ms21496 KiB
6Wrong answer0/326ms21856 KiB
7Wrong answer0/327ms21796 KiB
8Wrong answer0/326ms22256 KiB
9Wrong answer0/326ms23052 KiB
10Wrong answer0/325ms22744 KiB
11Wrong answer0/326ms22672 KiB
12Wrong answer0/326ms22828 KiB
13Wrong answer0/427ms23184 KiB
14Wrong answer0/427ms23252 KiB
15Wrong answer0/426ms23476 KiB
16Wrong answer0/426ms23696 KiB
17Wrong answer0/426ms23664 KiB