-
个人简介
#include using namespace std; int s1,s2; int main(){ int m,s,t; bool flag=0; cin>>m>>s>>t; for(int i=1;i<=t;i++){ s1+=17; if(m>=10){ s2+=60; m-=10; }else m+=4; if(s2>s1) s1=s2; if(s1>=s){ cout<<"Yes"<<endl<<i; flag=1; break; }
} if(flag==0) cout<<"No"<<endl<<s1;
}
-
通过的题目
-
最近活动
This person is lazy and didn't join any contests or homework. -
最近编写的题解
This person is lazy and didn't write any solutions. -
Stat
-
Rating
题目标签
- 前缀和
- 2
- O2优化
- 1
- 模拟
- 1
- 洛谷月赛
- 1