5 条题解

  • 2
    @ 2022-12-24 23:47:48
    #include <iostream>
    using namespace std;
    int main()
    {
    	int n;
    	cin >> n;
    	cout << n / 100 + n % 10;
        return 0;
    }
    
    • 1
      @ 2023-8-24 11:24:28

      过辣!(脑残人士的欢呼)

          string x;
          cin>>x;
          cout<<(x[2]-'0') + (x[0]-'0');
      
      • 0
        @ 2023-9-7 19:51:23
        #include<bits/stdc++.h>
        using namespace std;
        int main()
        {
            int n , a , b;
        	cin >> n;
            a = n / 100;
            b = n % 10;
            n = a + b;
        	cout << n;
            return 0;
        }//已AC
        

        A

        • 0
          @ 2023-5-26 13:15:56
          #include <bits/stdc++.h>
          using namespace std;
          int x;
          int main()
          {
          	cin >> x;
          	cout << x / 100 + x % 10;
              return 0;
          }
          
          • 0
            @ 2023-1-15 10:56:20
            #include <iostream>//hetao3097453
            using namespace std;
            int main()
            {
                int x;
                cin >> x;
                int a = x % 10;
                int b = x / 100;
                cout << a + b << endl;
                return 0;
            }
            
            
            • 1

            信息

            ID
            611
            时间
            1000ms
            内存
            64MiB
            难度
            1
            标签
            递交数
            184
            已通过
            137
            上传者