| 记录编号 | 601111 | 评测结果 | AAAAAAAAAA | ||
|---|---|---|---|---|---|
| 题目名称 | 罚站 | 最终得分 | 100 | ||
| 用户昵称 | 是否通过 | 通过 | |||
| 代码语言 | C++ | 运行时间 | 0.029 s | ||
| 提交时间 | 2025-06-02 16:43:39 | 内存使用 | 3.26 MiB | ||
#include <iostream>
#include <cstdio>
using namespace std;
int main(){
//freopen("lmyjr.in","r",stdin);
//freopen("lmyjr.out","w",stdout);
int n,m,d,a;
cin>>n>>m>>d>>a;
int zz=0,tl=100+a;
for(int s=1; s<=n; s++){
zz+=d; tl-=m;
if(tl<=0){
cout<<"N0"<<endl;
return 0;
}
if(zz>=100){
cout<<tl<<endl;
return 0;
}
};
cout<<"N0"<<endl;
return 0;
}