#pragma warning(disable:4996);
#include<stdio.h>
#include<math.h>
#include<string.h>
#include<iostream>
#include<algorithm>
#include<time.h>
#include<stdlib.h>
using namespace std;
int main() {
int n;
while (scanf("%d", &n) != EOF) {
if (n < 10) {
int ans = n * n;
if (ans % 10 == n) puts("Yes!");
else puts("No!");
}
else {
int ans = n * n;
if (ans % 100 == n) puts("Yes!");
else puts("No!");
}
}
return 0;
}
问题 A: 守形数
最新推荐文章于 2022-03-12 19:47:05 发布