5 条题解

  • 1

    #include<iostream>
    #include<cmath>
    using namespace std;
    int main()
    {
    int n,s,d;
    cin>>n>>s>>d;
    cout<<floor(n-d/s);
    return 0;
    }//专坑袁浩轩

  • 1

    #include<iostream>
    #include<cmath>
    using namespace std;
    int main()
    {
    int n,s,d;
    cin>>n>>s>>d;
    cout<<floor(n-d/s);
    return 0;
    }//专坑袁浩轩

  • 0
    @ 2024-12-02 20:46:28

    #include <stdio.h>
    int main() {
    int n, a, b, ans;
    while (scanf("%d", &n) == 1) {
    a = n;
    b = n;
    ans = n;
    while (a >= 3 || b >= 4) {
    n = a / 3 + b / 4;
    a = a % 3 + n;
    b = b % 4 + n;
    ans += n;
    }
    printf("%d\n", ans);
    }
    return 0;
    }

  • 0

    #include <stdio.h>
    int main() {
    int n, a, b, ans;
    while (scanf("%d", &n) == 1) {
    a = n;
    b = n;
    ans = n;
    while (a >= 3 || b >= 4) {
    n = a / 3 + b / 4;
    a = a % 3 + n;
    b = b % 4 + n;
    ans += n;
    }
    printf("%d\n", ans);
    }
    return 0;
    }

  • -3
    @ 2021-10-29 15:57:55

    #include <stdio.h>
    int main() {
    int n, a, b, ans;
    while (scanf("%d", &n) == 1) {
    a = n;
    b = n;
    ans = n;
    while (a >= 3 || b >= 4) {
    n = a / 3 + b / 4;
    a = a % 3 + n;
    b = b % 4 + n;
    ans += n;
    }
    printf("%d\n", ans);
    }
    return 0;
    }

  • 1

信息

ID
1040
难度
4
分类
(无)
标签
递交数
156
已通过
66
通过率
42%
上传者