• 板块灌水区
  • 楼主chenzhiyuAndy
  • 当前回复5
  • 已保存回复5
  • 发布时间2024/11/8 15:07
  • 上次更新2024/11/8 19:18:25
查看原帖
1269186
chenzhiyuAndy楼主2024/11/8 15:07
#include<bits/stdc++.h>
using namespace std;
inline int read(){
	int X=0;bool flag=1;char ch=getchar();
	while(ch<'0'||ch>'9'){if(ch=='-') flag=0;ch=getchar();}
	while(ch>='0'&&ch<='9'){X=(X<<1)+(X<<3)+ch-'0';ch=getchar();}
	if(flag) return X;
	return~(X-1);
}
signed main(){
	cout<<read()<<" "<<read()<<" "<<read()<<" "<<read();
	return 0;
}

输入是反的,我输入

12 34 56 78

输出是

78 56 34 12

这是为啥???

2024/11/8 15:07
加载中...