| 比赛 | NOIP2007普及组(复现) | 评测结果 | AAAAAAAAAA |
|---|---|---|---|
| 题目名称 | 守望者的逃离 | 最终得分 | 100 |
| 用户昵称 | FourTO | 运行时间 | 0.007 s |
| 代码语言 | C++ | 内存使用 | 13.66 MiB |
| 提交时间 | 2020-02-09 17:18:14 | ||
#include<bits/stdc++.h>
using namespace std;
int m,s,t,now=0;
int main(){
freopen("escape.in","r",stdin);
freopen("escape.out","w",stdout);
cin>>m>>s>>t;
int x=0,y=0;
for(int i=1;i<=t;i++){
x+=17;
if(m>=10) {
y+=60;
m-=10;
}
else m+=4;
if(y>x) x=y;
if(x>s){
cout<<"Yes"<<endl<<i<<endl;
return 0;
}
}
cout<<"No"<<endl<<x<<endl;
}