2 条题解

  • 1
    @ 2022-8-8 18:43:56
    #include <queue>
    #include <math.h>
    #include <stack>
    #include <stdio.h>
    #include <iostream>
    #include <vector>
    #include <iomanip>
    #include <string.h>
    #include <algorithm>
    using namespace std;
    int main()
    {
    	int a,b,y,m=0,ans=0;
    	for(int i=1;i<=7;i++)
    	{
    		cin >>a>> b;
    		y=a+b;
    		if((y>m)&&(y>8))m=y,ans=i;
    	}
    	cout << ans;
    	return 0;
    }
    

    信息

    ID
    670
    时间
    1000ms
    内存
    256MiB
    难度
    4
    标签
    递交数
    49
    已通过
    24
    上传者