d058. BASIC ็š„ SGN ๅ‡ฝๆ•ธ 5/16/2025

่งฃๆณ•ไธ€

โœ… ๅฎŒๆ•ดไปฃ็ขผ

่ฉ•ๅˆ†็ตๆžœ(ๅƒ่€ƒ) ๏ผš AC (2ms, 332KB)

#include <bits/stdc++.h>
using namespace std;

int main(){
    ios::sync_with_stdio(false);
    cin.tie(nullptr);
    
    int num;
    cin >> num;

    if(num < 0) cout << -1;
    else if(num > 0) cout << 1;
    else cout << 0;

    return 0;
}