题解 | #联谊活动#
联谊活动
http://www.nowcoder.com/practice/ae8ba287c81d4a2a9412467322464bf2
对2 取余并判断
//import "fmt"
/**
* 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可
*
*
* @param x int整型 参加活动人数
* @return bool布尔型
*/
func odevity(x int) bool {
// write code here
return x % 2 == 0
}