超有用,超简单
2026-04-05 20:42:57
发布于:北京
1阅读
0回复
0点赞
| 输出 | 无 | 包短 |
|---|---|---|
| INT最大值 | 🈚 | 包正确 |

方法1:
用INT_MAX求出(也适用于最小)(正确√率:99.99%)
#include <bits/stdc++.h>
#include <climits>
using namespace std;
int main(){
cout<<INT_MAX<<endl;
return 0;
}
方法2:
把214748367背下来的,可以这么写(正确✅️率:100.00%)
#include <bits/stdc++.h>
#include <climits>
using namespace std;
int main(){
cout<<2147483647<<endl;
return 0;
}
方法3:
int最大值约为2³¹-1,照样打出就行 (正确❌️率:99.11%)
(我就不写了)
完





有帮助,赞一个