1 条题解

  • 0
    @ 2023-7-24 10:18:52
    #include <iostream> 
    using namespace std;
    int main() {
        int a;
        cin >> a;
        bool is_bigger;
        int b = a % 10;
        int c = a / 10 % 10;
        int d = a / 100 % 10;
        int e = a / 1000 % 10;
        is_bigger = b + c + d + e == 9 ;
        if(is_bigger == 1){
        	cout << 1 << endl;
    	}else{
    		cout << 0 << endl;
    	}
        return 0;
    }
    
    • 1

    信息

    ID
    22
    时间
    1000ms
    内存
    256MiB
    难度
    3
    标签
    (无)
    递交数
    178
    已通过
    92
    上传者