39622023-03-06 18:53:44csicsilla70Radar (70 pont)csharpWrong answer 25/70158ms31108 KiB
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace radar
{
    class Program
    {
        static void Main(string[] args)
        {
            int n = int.Parse(Console.ReadLine());
            int m = int.Parse(Console.ReadLine());
            int maxi = int.MinValue;
            int x;
            int mini = int.MaxValue;
            for (int i = 0; i < n; i++)
            {
                x = int.Parse(Console.ReadLine());
                if (x < mini)
                    mini = x;
            }
            for (int i = 0; i < m; i++)
            {
                x = int.Parse(Console.ReadLine());
                if (x > maxi)
                    maxi = x;
            }
            if (mini > maxi)
                Console.WriteLine("IGEN");
            else
            {
                Console.WriteLine("NEM\n" + mini + "\n" + maxi);
            }            
            Console.ReadKey();
        }
    }
}
SubtaskSumTestVerdictTimeMemory
base25/70
1Accepted0/025ms20256 KiB
2Accepted0/025ms20188 KiB
3Accepted5/525ms20812 KiB
4Wrong answer0/525ms20828 KiB
5Wrong answer0/526ms21204 KiB
6Accepted5/526ms21740 KiB
7Accepted5/526ms21672 KiB
8Wrong answer0/527ms22080 KiB
9Wrong answer0/526ms22432 KiB
10Accepted5/5119ms30864 KiB
11Accepted5/5118ms30668 KiB
12Wrong answer0/592ms30948 KiB
13Wrong answer0/590ms30936 KiB
14Wrong answer0/5144ms30856 KiB
15Wrong answer0/5143ms31108 KiB
16Wrong answer0/5158ms31012 KiB