Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
4640 | 董语涵 | 判断数正负 | C++ | Accepted | 0 MS | 244 KB | 204 | 2023-01-12 16:06:06 |
#include<iostream> using namespace std; int main(){ int N; cin >> N; if (N>0){ cout << "positive"; } else if (N==0){ cout << "zero"; } else { cout << "negative"; } return 0; }