#include <iostream>
#include <string>
using namespace std;
int main()
{
	string n;
	cin >> n;
	//如果为负数照常输出 
	if(n[0] == '-')
	{
		cout << n << endl;
	}
	//如果为0照常输出 
	else if(n == "0") cout << n << endl;
	//如果为不是负数加上负号照常输出 
	else
	{
		cout << "-" << n << endl;
	}
	return 0;
}

3 条评论

  • @ 2026-1-9 21:09:51

    ((&%%^##@@##%##@#%^&*^#@#%^&^%#@#%^+*/*/&^%###%^%^&^#%#%^%@@#%^&^%#@#(&^%^%$$%%^&^%%*&&**))(*&&^%#%&^%^&^%(&(&%^%^#%#%^%^(&^%$$(^^%##@@#!@#!#@$$^^&()(())()&((++++()(()**(&(^&&6-————-——)()()**&……&……&……%%……¥@@¥&……%¥#¥&……%¥#%……&()&%……¥%……&&……%……&*&……%¥……+%R&%^%^%#%$#+-+-+

    • @ 2026-1-9 21:09:03

      666

      • @ 2025-7-16 15:30:05

        谢谢

        • 1

        信息

        ID
        7
        时间
        ms
        内存
        MiB
        难度
        1
        标签
        递交数
        517
        已通过
        83
        上传者