判断数正负

Luogu
IDLGB2035
Time1000ms
Memory128MB
DifficultyP1
分支结构
给定一个整数 $N$,判断其正负。如果 $N>0$, 输出 `positive` ; 如果 $N=0$, 输出 `zero` ; 如果 $N<0,$ 输出 `negative`。 ## Input 一个整数 $N(-10^9 \le N \le 10^9)$。 ## Output 如果 $N>0$, 输出 `positive`; 如果 $N=0$, 输出 `zero`; 如果 $N<0$, 输出 `negative`。 [samples]
Samples
Input #1
95
Output #1
positive
API Response (JSON)
{
  "problem": {
    "name": "判断数正负",
    "description": {
      "content": "给定一个整数 $N$,判断其正负。如果 $N>0$, 输出 `positive` ; 如果 $N=0$, 输出 `zero` ; 如果 $N<0,$ 输出 `negative`。",
      "description_type": "Markdown"
    },
    "platform": "Luogu",
    "limit": {
      "time_limit": 1000,
      "memory_limit": 131072
    },
    "difficulty": {
      "LuoguStyle": "P1"
    },
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "LGB2035"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "给定一个整数 $N$,判断其正负。如果 $N>0$, 输出 `positive` ; 如果 $N=0$, 输出 `zero` ; 如果 $N<0,$ 输出 `negative`。\n\n## Input\n\n一个整数 $N(-10^9 \\le N \\le 10^9)$。\n\n## Output\n\n如果 $N>0$, 输出 `positive`; \n\n如果 $N=0$, 输出 `zero`; \n\n如果 $N...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments