Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
150 A班-黎祖彦 苹果和虫子 C++ 解答错误 20 1 MS 260 KB 197 2024-11-16 11:44:31

Tests(1/5):


#include<bits/stdc++.h> using namespace std; int main(){ int n,x,y,sum=0; cin>>n>>x>>y; sum=y/x; if(y/x!=0&&y>x) { sum++; cout<<n-sum; } else if(y<=x) { cout<<n-1; } }


测评信息: