5 条题解

  • 1
    @ 2023-9-5 22:29:08
    #include<bits/stdc++.h>
    using namespace std;
    int main()
    {
        int n,x;
        cin >> n;
        x = n/100;
        x += n%10;
        x += n/10%10;
        cout << x;
        return 0;
    }
    

    简单·简单:A

    • 1
      @ 2022-7-6 12:29:19
      #include <bits/stdc++.h> 
      using namespace std;
      int main()
      {
          int n,x;
          cin >> n;
          x = n/100+n%10+n/10%10;
          cout << x;
          return 0;
      }
      
      • 0
        @ 2022-12-16 22:10:41
        #include <iostream>//hetao3097453
        using namespace std;
        int main()
        {
            int n;
            cin >> n;
            int a = n / 100;
            int b = n / 10 % 10;
            int c = n % 10;
            int d = a + b + c;
            cout << d << endl;
            return 0;
        }
        
        
        • -1
          @ 2023-5-31 15:15:11
          #include <bits/stdc++.h>
          using namespace std;
          int n;
          int main()
          {
              cin >> n;
              cout << n / 100 + n / 10 % 10 + n % 10;
              return 0;
          }
          
          • -6
            @ 2022-11-27 9:56:57

            请输入六位数密码()()()()()(),(输入完发题解,输入密码请回复)

          • 1

          信息

          ID
          713
          时间
          1000ms
          内存
          128MiB
          难度
          1
          标签
          递交数
          211
          已通过
          155
          上传者