3 条题解

  • 2
    @ 2025-3-14 20:42:02

    #include<bits/stdc++.h> using namespace std; int main(){ int a; short b; cout<<sizeof(a)<<" "<<sizeof(b); return 0; }

    • 0
      @ 2025-7-11 20:50:28
      #include<bits/stdc++.h>
      using namespace std;
      int main()
      {
      	int a;
      	short b;
      	cout<<sizeof(a)<<" "<<sizeof(b);
      	return 0;
      }
      
      • -4
        @ 2025-1-16 20:52:05
        #include<bits/stdc++.h>
        using namespace std;
        int main(){
        	int i;
        	short sh;
        	cout << sizeof(i) << ' ' << sizeof(sh);
        	return 0;
        }
        

        本题很简单,只需要用上sizeof()函数就行。

        • 1

        信息

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