sb 张子程是嘉豪 · 发布于 2026-01-30 · 浏览 196 回复 0 include <bits/stdc++.h> 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; }