'commit'
This commit is contained in:
15
C++专题课程/NOIP算法总结/模拟/不高兴的津津/P1085.cpp
Normal file
15
C++专题课程/NOIP算法总结/模拟/不高兴的津津/P1085.cpp
Normal file
@@ -0,0 +1,15 @@
|
||||
#include<iostream>
|
||||
using namespace std;
|
||||
int main () {
|
||||
int a,b,s,max=0,i,day=0;
|
||||
for (i=1; i<8; i++) {
|
||||
cin>>a>>b;
|
||||
s=a+b;
|
||||
if ((s>max)&&(s>8)) {
|
||||
max=s;
|
||||
day=i;
|
||||
}
|
||||
}
|
||||
cout<<day;
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user