1 条题解

  • 0
    @ 2025-11-30 16:24:18

    C++ :

    #include <iostream>
    #include <cmath>
    using namespace std;
    int main() {
        int number;
        cin >> number;
        if (abs(number) >= 10 && abs(number) <= 30) {
            cout << "绝对值在 10 到 30 的范围内。";
        } 
        else {
            cout << "绝对值不在 10 到 30 的范围内。";
        }
        return 0;
    }
    
    • 1

    信息

    ID
    502
    时间
    1000ms
    内存
    128MiB
    难度
    (无)
    标签
    递交数
    0
    已通过
    0
    上传者