踢结(题解)(c++)
2025-03-30 16:50:20
发布于:黑龙江
0阅读
0回复
0点赞

#include<bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
cout << n*(-1);
return 0;
}
此题对于没上初中的小孩哥来说很难,因为他涉及到负数;
负数公式:正 * 正=正,负 * 负=负,正 * 负=负;

这里空空如也
2025-03-30 16:50:20
发布于:黑龙江

#include<bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
cout << n*(-1);
return 0;
}
此题对于没上初中的小孩哥来说很难,因为他涉及到负数;
负数公式:正 * 正=正,负 * 负=负,正 * 负=负;

这里空空如也
提交答案之后,这里将显示提交结果~
有帮助,赞一个