Type: Default 1000ms 256MiB

偶数的判定

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.

【试题描述】

输入一个数,判断是否是偶数;

【输入格式】

输入一个数N;

【输出格式】

如果N是偶数,输出"yes",否则输出"no"。

【样例输入】

 2

【样例输出】

yes

【说明】

样例程序如下:

#include<bits/stdc++.h>
using namespace std;
int main(){
	int n;
	cin >> n;
  	if(n % 2 == 0)
		cout << "yes";
  	else 
	  	cout << "no";
	return 0;
}

2025上期期末摸底

Not Attended
Status
Done
Rule
IOI(Strict)
Problem
7
Start at
2025-6-10 16:15
End at
2025-6-10 17:15
Duration
1 hour(s)
Host
Partic.
21