26 条题解
-
1一名蒟蒻 (陈儒乐) LV 9 @ 2023-6-3 12:21:48
#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;}
-
12023-1-26 16:23:08@
#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; }
-
02024-4-12 20:08:39@
include <iostream> #include <stdio.h> #include <iomanip> #include <math.h> using namespace std; int main() { int N; cin>>N; if(N>0) { cout<<"positive"; } if(N==0){ cout<<"zero"; } if(N<0){ cout<<"negative"; } return 0; }
-
02024-4-12 20:07:31@
#include <iostream> #include <stdio.h> #include <iomanip> #include <math.h> using namespace std; int main() { int N; cin>>N; if(N>0) { cout<<"positive"; } if(N==0){ cout<<"zero"; } if(N<0){ cout<<"negative"; } return 0; }
-
02024-4-12 20:07:28@
#include <iostream> #include <stdio.h> #include <iomanip> #include <math.h> using namespace std; int main() { int N; cin>>N; if(N>0) { cout<<"positive"; } if(N==0){ cout<<"zero"; } if(N<0){ cout<<"negative"; } return 0; }
-
02024-4-12 20:07:24@
#include <iostream> #include <stdio.h> #include <iomanip> #include <math.h> using namespace std; int main() { int N; cin>>N; if(N>0) { cout<<"positive"; } if(N==0){ cout<<"zero"; } if(N<0){ cout<<"negative"; } return 0; }
-
02024-4-12 20:07:19@
#include <iostream> #include <stdio.h> #include <iomanip> #include <math.h> using namespace std; int main() { int N; cin>>N; if(N>0) { cout<<"positive"; } if(N==0){ cout<<"zero"; } if(N<0){ cout<<"negative"; } return 0; }
-
02024-4-12 20:07:15@
#include <iostream> #include <stdio.h> #include <iomanip> #include <math.h> using namespace std; int main() { int N; cin>>N; if(N>0) { cout<<"positive"; } if(N==0){ cout<<"zero"; } if(N<0){ cout<<"negative"; } return 0; }
-
02024-4-12 20:07:12@
#include <iostream> #include <stdio.h> #include <iomanip> #include <math.h> using namespace std; int main() { int N; cin>>N; if(N>0) { cout<<"positive"; } if(N==0){ cout<<"zero"; } if(N<0){ cout<<"negative"; } return 0; }
-
02024-4-12 20:07:08@
#include <iostream> #include <stdio.h> #include <iomanip> #include <math.h> using namespace std; int main() { int N; cin>>N; if(N>0) { cout<<"positive"; } if(N==0){ cout<<"zero"; } if(N<0){ cout<<"negative"; } return 0; }
-
02024-4-12 20:07:05@
#include <iostream> #include <stdio.h> #include <iomanip> #include <math.h> using namespace std; int main() { int N; cin>>N; if(N>0) { cout<<"positive"; } if(N==0){ cout<<"zero"; } if(N<0){ cout<<"negative"; } return 0; }
-
02024-4-12 20:07:04@
include <iostream> #include <stdio.h> #include <iomanip> #include <math.h> using namespace std; int main() { int N; cin>>N; if(N>0) { cout<<"positive"; } if(N==0){ cout<<"zero"; } if(N<0){ cout<<"negative"; } return 0;
-
02024-4-12 20:06:59@
#include <iostream> #include <stdio.h> #include <iomanip> #include <math.h> using namespace std; int main() { int N; cin>>N; if(N>0) { cout<<"positive"; } if(N==0){ cout<<"zero"; } if(N<0){ cout<<"negative"; } return 0; }
-
02024-4-12 20:00:46@
#include <iostream> #include <stdio.h> #include <iomanip> #include <math.h> using namespace std; int main() { int N; cin>>N; if(N>0) { cout<<"positive"; } if(N==0){ cout<<"zero"; } if(N<0){ cout<<"negative"; } return 0; }
-
02024-4-12 19:56:16@
#include <iostream> #include <stdio.h> #include <iomanip> #include <math.h> using namespace std; int main() { int N; cin>>N; if(N>0) { cout<<"positive"; } if(N==0){ cout<<"zero"; } if(N<0){ cout<<"negative"; } return 0; }
-
02024-4-12 19:55:26@
#include <iostream> #include <stdio.h> #include <iomanip> #include <math.h> using namespace std; int main() { int N; cin>>N; if(N>0) { cout<<"positive"; } if(N==0){ cout<<"zero"; } if(N<0){ cout<<"negative"; } return 0; }
-
02024-4-6 12:36:57@
#include <iostream> #include <cstdio> #include <cstring> #include <iomanip> #include <cmath> #include <algorithm> const int N = 1e5 + 10; const int INF = 0x3f3f3f3f; using namespace std; int n; int main(){ cin>>n; if(n>0) { cout<<"positive"; return 0; } n==0?cout<<"zero":cout<<"negative"; return 0; }
-
02024-4-5 21:30:23@
#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; }
-
02024-3-24 14:00:36@
#include <stdio.h> #include <iostream> #include <math.h> using namespace std; int main() { int a; cin>>a; if(a>0) { cout<<"positive"; }
else if(a<0) { cout<<"negative"; } else if(a==0) { cout<<"zero"; } return 0;
}
-
02023-4-4 20:56:09@
#include<bits/stdc++.h> using namespace std; int main() { int n; cin>>n; if(n>0) cout<<"positive"; if(n==0) cout<<"zero"; if(n<0) cout<<"negative"; return 0; }
信息
- ID
- 868
- 时间
- 1000ms
- 内存
- 128MiB
- 难度
- 4
- 标签
- 递交数
- 672
- 已通过
- 302
- 上传者