4 条题解

  • 1
    @ 2026-6-6 14:55:19

    雄帝门,正确题解来了 #include<bits/stdc++.h> using namespace std; int main() { int n,x,y; cin>>n>>x>>y; if(y%x==0) { if(n-(y/x)<0) { cout<<0; } else cout<<n-(y/x); } else {

    	if(n-(y/x+1)<0)
    	{
    		cout<<0;	
    	}
    	else cout<<n-(y/x+1);
    }
    return 0;
    

    }

    信息

    ID
    120
    时间
    1000ms
    内存
    256MiB
    难度
    6
    标签
    递交数
    128
    已通过
    39
    上传者