2 条题解

  • 0
    @ 2025-1-12 16:18:59

    比较简单(幸好有数据了)。

    #include<bits/stdc++.h>
    #define int long long
    #define INF 0x3f3f3f
    using namespace std;
    int n,x,y;
    signed main(){
    	cin>>n>>x>>y;
    	if(y%x)cout<<n-y/x-1;
    	else cout<<n-y/x;
    	return 0;
    }
    

    信息

    ID
    122
    时间
    1000ms
    内存
    128MiB
    难度
    9
    标签
    递交数
    7
    已通过
    6
    上传者