yhl : MaShupc不给钱 • 10小时前
#include <iostream>
#include <cmath>
using namespace std;
int main() {
int scti, mthti, unhapday, estunhap = 0, unhapest;
for (int i = 1; i <= 7; i++) {
cin >> scti >> mthti;
if (scti + mthti > 8 ) {
unhapday = i;
if (scti + mthti > estunhap) {
estunhap = scti + mthti;
unhapest = i;
}
}
}
cout << unhapest;
}
评论:
请先登录,才能进行评论