3 条题解

  • 1
    @ 2024-10-21 21:47:44

    纯找规律

    第y小时剩的=n-(y/x)-1

    AC code:

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

    信息

    ID
    24
    时间
    1000ms
    内存
    256MiB
    难度
    1
    标签
    递交数
    52
    已通过
    30
    上传者