社区讨论

I ACed this problem,but I have a problem

灌水区参与者 14已保存回复 26

讨论操作

快速查看讨论及其快照的属性,并进行相关操作。

当前回复
26 条
当前快照
1 份
快照标识符
@lz9dxzhx
此快照首次捕获于
2024/07/31 13:07
2 年前
此快照最后确认于
2024/07/31 14:33
2 年前
查看原帖
rt
This is my code before:(language is C++)
CPP
#include<bits/stdc++.h>
#define int long long
using namespace std;
int a,b;
signed main(){
	cin>>a>>b;
	cout<<int((a+b*0.1)/1.9);
	return 0;
}
GCC says: "#define int long long is wrong" But I think int and long long is not wrong.
This is my AC code(language is C++ to):
CPP
#include<bits/stdc++.h>
//#define int long long
using namespace std;
int a,b;
signed main(){
	cin>>a>>b;
	cout<<int((a+b*0.1)/1.9);
	return 0;
}
Thank for your help!!!

回复

26 条回复,欢迎继续交流。

正在加载回复...