39582023-03-06 15:47:38bencewokRadar (70 pont)golangTime limit exceeded 35/70598ms61760 KiB
package main

import (
	"fmt"
)

func main() {

	var input1, input2 int
	fmt.Scanln(&input1)
	fmt.Scanln(&input2)

	min:=10000000000
	var num,own,ellenseg int
	for i:=0;i<input1;i++{
		fmt.Scanln(&num)

		if num<min{
			own=i
			min=num
		}


	}

	max:=0
	for i:=0;i<input2;i++{
		fmt.Scanln(&num)

		if num>max{
			ellenseg=i
			max=num
		}


	}

	if min>max{
		fmt.Println("IGEN")
		
	}else{
		fmt.Println("NEM")
		fmt.Println(own+1)
		fmt.Println(ellenseg+1)

	}
	}

SubtaskSumTestVerdictTimeMemory
base35/70
1Accepted0/037ms47864 KiB
2Accepted0/027ms48544 KiB
3Accepted5/525ms48900 KiB
4Accepted5/525ms48884 KiB
5Accepted5/525ms49092 KiB
6Accepted5/525ms49200 KiB
7Accepted5/525ms49600 KiB
8Accepted5/528ms49764 KiB
9Accepted5/528ms49872 KiB
10Time limit exceeded0/5598ms34408 KiB
11Time limit exceeded0/5583ms61760 KiB
12Time limit exceeded0/5583ms31608 KiB
13Time limit exceeded0/5570ms31668 KiB
14Time limit exceeded0/5556ms31892 KiB
15Time limit exceeded0/5564ms32248 KiB
16Time limit exceeded0/5568ms32200 KiB