19 条题解

  • 0
    @ 2026-5-22 21:23:33
    #include<bits/stdc++.h>
    using namespace std;
    int main(){
    	int  n,x,y,s;
        cin>>n>>x>>y;
    	s=y/x;
    	if(y%x==0){
    		cout<<n-s;
    	}
    	if(y%x!=0)
    		cout<<n-s-1;	
    	return 0;
    } 
    
    

    信息

    ID
    871
    时间
    1000ms
    内存
    128MiB
    难度
    7
    标签
    递交数
    2356
    已通过
    482
    上传者