题目1183:守形数
来源:互联网 发布:java try catch嵌套 编辑:程序博客网 时间:2024/05/16 14:26
#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;//1183int 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****************************************************************/
0 0
- 题目1183:守形数
- 题目1183:守形数
- 题目1183:守形数
- 题目1183:守形数
- 题目1183:守形数
- 题目1183:守形数
- 题目1183:守形数
- 38-题目1183:守形数
- 九度OnlineJudge题目1183:守形数
- 九度 题目1183:守形数
- 九度题目1183:守形数
- 九度OJ题目1183:守形数
- 题目1183:守形数(%运算符)
- 九度OJ题目1183:守形数
- 题目1183:守形数 九度OJ
- 题目38:守形数
- 【九度OJ】题目1183:守形数 解题报告
- 天勤OJ 题目1127: 守形数
- windows服务编写原理(上)
- 很详细的在linux下使用Eclipse 开发hadoop配置
- CodeForces 605 A.Sorting Railway Cars(贪心)
- MyEclipse加入jquery.js文件后出现missing semicolon的错误的解决方法
- Web模糊测试工具Powerfuzzer
- 题目1183:守形数
- Hibernate开发步骤,执行流程、方言的作用、映射文件的作用、如何进行联合主键映射
- 解决代理 Ubuntu 命令行apt-get 联网问题
- ELK结合logback搭建日志中心
- IMWeb训练营作业——todo list
- IMX6 Linux系统下串口丢包错包问题研究
- excel双击改变格式
- windows服务编写原理(下)
- 约瑟夫环