时间限制:C/C++/Rust/Pascal 1秒,其他语言2秒
空间限制:C/C++/Rust/Pascal 256 M,其他语言512 M
64bit IO Format: %lld
题目描述
One day, Li Lei and Han Meimei want to hold a shooting game.
Competition rules:
1.There are three kinds of targets. Red : one point, White : two points, Black : three points.
2.The winner is the first in the competition.
Now Li Lei and Han Meimei are not good at mathematic, so they need your help.
输入描述:
First,you will be given a number N,represents the number of competitors.
Given a list about competititor's ID(form 1 to N), the number of red targets, White targets and Black targets.
The number of competitiors will not exceed 100.
输出描述:
You need output the winner's ID and total points. If there are more than one winners, please output the winner with the smallest ID.
示例1
输入
复制
5
1 8 3 7
2 6 2 4
3 6 5 0
4 2 6 3
5 1 6 8