洛谷P1085不高兴的津津题解--zhengjun

题面传送门c++ 思路 一道模拟题,直接打擂台便可web 代码 #include<bits/stdc++.h> using namespace std; int n,k,maxx; int x,y; int main(){ for(int i=1;i<=7;i++){ cin>>x>>y; if(x+y>maxx){ k=i; maxx=x+y; } } cout<<
相关文章
相关标签/搜索