79782024-01-12 09:36:55Leventusz09Radar (70 pont)csharpAccepted 70/70146ms34224 KiB
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Radar{
    class Program{
        static void Main(){
            int N = int.Parse(Console.ReadLine());
            int M = int.Parse(Console.ReadLine());
            int[] A = new int[N], B = new int[M];
            int minA = int.MaxValue, maxB = 0;
            int o1=0, o2=0;

            for(int i=0; i<N; i++){
                A[i] = int.Parse(Console.ReadLine());
                if (A[i] < minA){
                    minA = A[i];
                    o1 = i;
                }
            }
            for(int i=0; i<M; i++){
                B[i] = int.Parse(Console.ReadLine());
                if (B[i] > maxB){
                    maxB = B[i];
                    o2 = i;
                }
            }

            if(minA > maxB){
                Console.WriteLine("IGEN");
                Console.ReadKey();
                return;
            }


            Console.WriteLine("NEM\n" + (o1+1) + "\n" + (o2+1));
            Console.ReadKey();
        }
    }
}
SubtaskSumTestVerdictTimeMemory
base70/70
1Accepted0/027ms20580 KiB
2Accepted0/026ms20960 KiB
3Accepted5/526ms21332 KiB
4Accepted5/525ms21480 KiB
5Accepted5/527ms21788 KiB
6Accepted5/527ms22344 KiB
7Accepted5/526ms22332 KiB
8Accepted5/527ms22376 KiB
9Accepted5/527ms22360 KiB
10Accepted5/5120ms31668 KiB
11Accepted5/5122ms31840 KiB
12Accepted5/593ms32452 KiB
13Accepted5/594ms32788 KiB
14Accepted5/5146ms33304 KiB
15Accepted5/5144ms33872 KiB
16Accepted5/5145ms34224 KiB