【函数】奇偶判断
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
Background
函数题与常规题不同,你只需要实现给出的函数,而后直接提交即可,通常情况下不需要进行输入输出。
如果你需要,也可以在给出的函数外面声明一些变量或者函数。
Description
任意输入一个字符,判断其 ASCII 值是否是奇数,若是,返回 true
,否则,返回 false
。
例如,字符 A
的 ASCII 值是 65
,则返回 true
,若输入字符 B
(ASCII 值是 ),则返回 false
。
Format
你 不需要也不要 进行输入输出,按照下列格式完成上述功能后直接提交即可
#include "Parity.h"
bool judge(const char &c) {
// 请在此处完成你的函数
}
【重要】初步了解 OJ
- Status
- Done
- Rule
- IOI
- Problem
- 5
- Start at
- 2024-9-8 12:30
- End at
- 2024-11-30 20:30
- Duration
- 2000 hour(s)
- Host
- Partic.
- 89