2 条题解

  • 0
    @ 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; }

    • -2
      @ 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
      标签
      (无)
      递交数
      88
      已通过
      59
      上传者