#include <iostream>
#include <stdio.h>
#include <algorithm>
#include <math.h>
#include <string>
#include <string.h>
#include <vector>
#include <queue>
#include <stack>
#include <sstream>
using namespace std;
//1183
int main(){
int n,x,y;
//freopen("input.txt","r",stdin);
while(cin>>n){
x=n*n;
y=n;
int l=0;
while(y){
l++;y/=10;
}
int t=1;
while(l--){
t*=10;
}
t=x%t;
if(n==t) printf("Yes!\n");
else printf("No!\n");
}
return 0;
}
/**************************************************************
Problem: 1183
User: cust123
Language: C++
Result: Accepted
Time:10 ms
Memory:1520 kb
****************************************************************/
题目1183:守形数
最新推荐文章于 2022-11-04 22:16:05 发布