26 条题解
-
0一个人 (2022ts076) LV 8 @ 2023-1-2 15:17:58
#include<iostream> using namespace std; int main(){ int n; cin >> n; if (n == 0){ cout<<"zero"; }else{ if (n < 0){ cout<<"negative"; }else{ cout<<"positive"; } } }
-
02022-9-3 14:45:55@
#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 if (n > 0) { cout << "positive"; } return 0; }
-
-12023-4-10 17:04:59@
#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; }
-
-12022-12-4 15:55:06@
#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 if (n > 0) { cout << "positive"; } return 0; }
-
-22022-1-2 15:54:56@
#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"; } }
-
-32022-1-2 15:49:55@
#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"; } }
信息
- ID
- 868
- 时间
- 1000ms
- 内存
- 128MiB
- 难度
- 4
- 标签
- 递交数
- 672
- 已通过
- 302
- 上传者