3 条题解

  • 3
    @ 2026-5-23 15:41:08

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

    int main() { long long a,b,c,d; cin>>a; b=a/100; c=a%100/10; d=a%100%10; if(bbb+ccc+ddd==a){ cout<<"YES"; } else{ cout<<"NO"; } return 0; }

    • -4
      @ 2026-5-23 19:56:37

      #include using namespace std;

      int main() { int n; cin >> n; int a = n/100, b = n/10%10, c = n%10; cout << (aaa + bbb + ccc == n ? "YES" : "NO"); return 0; }

      • -4
        @ 2026-5-23 11:33:10

        数学老师没教过>:(

      • 1

      信息

      ID
      30933
      时间
      1000ms
      内存
      256MiB
      难度
      7
      标签
      (无)
      递交数
      123
      已通过
      25
      上传者