Lines
시간 제한1초메모리 제한2048 MB
각 i에 대해 F_i(t) = i*t + M_i이고 M_i는 x+y+z=i인 a_x+b_y+c_z의 최댓값일 때, 다른 모든 함수를 항상 앞서는 t가 존재하지 않는 i를 모두 찾는다.
문제
Given are three arrays of integers: , , .
We define functions as follows:
A function is said to be NeVeR\_LosEs if and only if there does not exist a real number such that for all .
Your task is to find out which functions can be called NeVeR\_LosEs.
입력
The first line contains an integer ().
The second line contains the array ().
The third line contains the array ().
The fourth line contains the array ().
출력
On the first line, print an integer , the number of functions that can be called NeVeR\_LosEs.
On the second line, print integers , the indices of these functions in ascending order.