张子程是嘉豪 • 3个月前
using namespace std;
int main() {
double x; cin >> x; if (x > 0) { cout << "1"; } else if (x == 0) { cout << "0"; } else if (x < 0) { cout << "-1"; } return 0;
}
评论:
请先登录,才能进行评论