1 条题解

  • 0
    @ 2024-12-24 9:54:30

    C++ :

    #include <iostream>
    #include <algorithm>
    #include <cstdio>
    #include <cmath>
    #include <cstring>
    #include <cstdlib>
    #include <iostream>
    using namespace std;
    
    int main()
    {
      //freopen("in.txt", "r", stdin);
      //freopen("out.txt", "w", stdout);
      int a, b, x, y;
      while(scanf("%d%d%d%d", &a, &b, &x, &y) != EOF)
      {
        int ans = 100 + a * x - b * y;
        if(ans <= 0)
          printf("0\n");
        else
          printf("%d\n", ans);
      }
      return 0;
    }
    
    
    • 1

    信息

    ID
    1135
    时间
    1000ms
    内存
    128MiB
    难度
    (无)
    标签
    递交数
    0
    已通过
    0
    上传者