奇偶数判断

Luogu
IDLGB2037
Time1000ms
Memory128MB
DifficultyP1
分支结构
给定一个整数,判断该数是奇数还是偶数。如果 $n$ 是奇数,输出 `odd`;如果 $n$ 是偶数,输出 `even`。 ## Input 输入仅一行,一个整数 $n$。 ## Output 输出仅一行,如果 $n$ 是奇数,输出 `odd`;如果 $n$ 是偶数,输出 `even`。 [samples] ## Note $-100\le n\le 100$。
Samples
Input #1
5
Output #1
odd
Input #2
10
Output #2
even
API Response (JSON)
{
  "problem": {
    "name": "奇偶数判断",
    "description": {
      "content": "给定一个整数,判断该数是奇数还是偶数。如果 $n$ 是奇数,输出 `odd`;如果 $n$ 是偶数,输出 `even`。",
      "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": "LGB2037"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "给定一个整数,判断该数是奇数还是偶数。如果 $n$ 是奇数,输出 `odd`;如果 $n$ 是偶数,输出 `even`。\n\n## Input\n\n输入仅一行,一个整数 $n$。\n\n## Output\n\n输出仅一行,如果 $n$ 是奇数,输出 `odd`;如果 $n$ 是偶数,输出 `even`。\n\n[samples]\n\n## Note\n\n$-100\\le n\\le 100$。...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments