1 条题解

  • 0
    @ 2025-3-28 23:39:11

    C++代码

    #include <iostream>
    using namespace std;
    
    int main() {
        int a;          // 定义int类型变量
        short b;        // 定义short类型变量
        
        // 使用sizeof运算符获取变量大小(单位:字节)
        cout << sizeof(a) << " " << sizeof(b) << endl;
        
        return 0;
    }
    
    

    信息

    ID
    18
    时间
    1000ms
    内存
    256MiB
    难度
    10
    标签
    递交数
    1
    已通过
    1
    上传者