#include<stdio.h>
#include<stdlib.h>
int main(){
int i,j,k,n,m,s,t;
scanf("%d%d%d",&m,&s,&t);
n=0;
k=t;
for(i=1;i<=t;i++){
if(m>=10){
n+=60;
m=m-10;
}else
if(m>=2&&m<6&&t-i>2)
m+=4;
else
if(m>=6&&t-i>1)
m+=4;
else
n+=17;
if(n>=s){
k=i;
break;
}
}
if(n>=s){
printf("Yes\n");
printf("%d",k);
}else{
printf("No\n");
printf("%d",n);}
return 0;
}
NOIP2007:守望者的逃离
最新推荐文章于 2023-02-11 11:52:14 发布