2 solutions

  • 1
    @ 2026-1-31 15:19:21
    1. #include <bits/stdc++.h>

    2. using namespace std;

    3. int main() {

    4. int a, b, c;

    5. cin >> a >> b >> c;//输入a,b,c

    6. cout << (a + b) / c;//输出(a+b)/c的值

    7. return 0;

    8. }

    • 0
      @ 2026-1-9 23:13:16

      #include <bits/stdc++.h> using namespace std;

      int main() { int a, b, c; cin >> a >> b >> c; cout << (a + b)/c; return 0; }

      • 1

      Information

      ID
      549
      Time
      1000ms
      Memory
      128MiB
      Difficulty
      1
      Tags
      # Submissions
      120
      Accepted
      96
      Uploaded By