Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
52199 | fengxiaohang | 判断数正负 | C++ | Accepted | 1 MS | 252 KB | 252 | 2024-09-28 15:32:32 |
#include<bits/stdc++.h> int main() { int num; scanf("%d", &num); if (num > 0) { printf("positive\n"); } else if (num < 0) { printf("negative\n"); } else { printf("zero\n"); } return 0; }