3 条题解

  • 2
    @ 2025-5-24 12:43:20
    1. #include <bits/stdc++.h> using namespace std;

    int main() { int a,b,c,d; cin >> a >> b >> c >> d; int sum = a + b + c; int ans = sum % d; cout<<ans; return 0;

    }

    • 1
      @ 2025-12-20 14:29:44
      #include <iostream>
      using namespace std;
      int a,b,c,d;
      int main()
      {
      	cin >> a >> b >> c >> d;
      	cout << (a + b + c) % d;
      	return 0;
      }
      • 0
        @ 2025-5-24 9:06:20
        #include <bits/stdc++.h>
        using namespace std;
        #define LL long long
        const int N = 1e5 + 10;
        const int INF = 0x3f3f3f3f;
        int a , b , c , d;
        int main()
        {
        	cin >> a >> b >> c >> d;
        	int gh = a + b + c;
        	cout << gh % d;
        	return 0;
        }
        //菜鸟驿站
        //老六专属
        
        
        sb
        • 1

        信息

        ID
        3294
        时间
        1000ms
        内存
        256MiB
        难度
        5
        标签
        递交数
        201
        已通过
        77
        上传者