rt,萌新的编辑器为 VSCode,编译指令如下:
g++ -O2 -Wall -Wextra '-Wl,-stack=134217728' -std=c++20 \"$fileName\" -o \"$fileNameWithoutExt.exe\" -fexec-charset=GBK
代码如下:
#include<bits/stdc++.h>
using namespace std;
inline int read(){
int ans=0;bool op=0;char ch=getchar();
while(ch<'0'||'9'<ch){if(ch=='-')op=1;ch=getchar();}
while('0'<=ch&&ch<='9'){ans=(ans<<1)+(ans<<3)+(ch^48);ch=getchar();}
if(op)return -ans;
return ans;
}
signed main(){
cout<<read()+read();
return 0;
}
求大佬解答/kk