Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
5824 | lulu | 判断数正负 | C++ | Accepted | 0 MS | 244 KB | 206 | 2023-01-18 12:30:37 |
#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; }