2 条题解

  • 1
    @ 2025-10-20 15:34:48
    #include<iostream>
    using namespace std;
    int main(){
        //假设每天每头牛吃一份草量
        int a = 1;
        //15头牛吃20天的总草量,也就是20天的长草量加上原草量
        int n15 = 15*20*a;
        //20头牛10天吃的总草量,也就是10天的长草量加上原草量
        int n20 = 20*10*a;
        //每天的长草量
        int m = (n15-n20)/(20-10);
        //每天的长草量够几头牛吃
        int nx = m/a;
        cout<<nx;
        return 0;
    }
    
    • 0
      @ 2026-5-15 22:17:48
      #include<bits/stdc++.h>
      using namespace std;
      int main(){
          cout<<10;
          return 0;
      }
      

      强制输出NB

      • 1

      信息

      ID
      171
      时间
      1000ms
      内存
      64MiB
      难度
      1
      标签
      递交数
      425
      已通过
      295
      上传者