比赛 EYOI与SBOI开学欢乐赛12th 评测结果 AAAAWWWWWW
题目名称 数字的游戏 最终得分 40
用户昵称 Lfc_HeSn 运行时间 0.000 s
代码语言 C++ 内存使用 0.00 MiB
提交时间 2022-10-17 21:49:06
显示代码纯文本
#include<bits/stdc++.h>
using namespace std;
#define int long long
signed main() {
	freopen("cdgame.in", "r", stdin);
	freopen("cdgame.out", "w", stdout);
	int n;
	cin >> n;
	for(int i = 1; i <= n; i ++) {
		int x;
		cin >> x;
		if(x <= 100) {
			if(x % 10 == 0) {
				cout << "NO" << endl;
			}
			else {
				cout << "YES" << endl;
			}
		}
		else {
			if(x % 10 == 0) {
				cout << "YES" << endl;
			}
			else {
				cout << "NO" << endl;
			}
		}
	}
	return 0;
}