31 条题解
信息
- ID
- 868
- 时间
- 1000ms
- 内存
- 128MiB
- 难度
- 4
- 标签
- 递交数
- 953
- 已通过
- 454
- 上传者
#include <bits/stdc++.h> using namespace std; int main(){ int n; cin >> n; if (n == 0){ cout << "zero"; }else if (n < 0){ cout << "negative"; }else{ cout << "positive"; } return 0; }
#include <stdio.h>
#include <iostream>
#include <math.h>
#include <iomanip>
using namespace std;
int main()
{
int N;
cin >>N;
if(N<0)
{
cout<<"negative";
}
else if(N==0)
{
cout<<"zero";
}
else
{
cout<<"positive";
}
}