A Giveaway UVALive
来源:互联网 发布:疯狂联盟兵种数据 编辑:程序博客网 时间:2024/06/05 01:07
//leehaoze#include <iostream>#include <deque>#include <string>#include <vector>#include <queue>#include <cstdio>#include <stack>#include <algorithm>#include <cstring>#include <cctype>#include <cstdio>#include <cmath>#include <cstdlib>using namespace std;const int INF = 1<<29;#define INC_SAT( val ) (val = ((val)+1 > (val)) ? (val)+1 : (val))#define ARR_SIZE( a ) ( sizeof( (a) ) / sizeof( (a[0]) ) )#define ULL unsigned long longint data[] = {1, 64, 729, 4096, 15625, 46656, 117649, 262144, 531441, 1000000, 1771561, 2985984, 4826809, 7529536, 11390625, 16777216, 24137569, 34012224, 47045881, 64000000 , 85766121};int main() { long long num; while(scanf("%lld",&num) && num){ bool flag = false; for (int i = 0; i < 21; ++i) { if(num == data[i]){ flag = true; printf("Special\n"); break; } } if(!flag){ printf("Ordinary\n"); } } return 0;}
0 0
- A Giveaway UVALive
- UVALive 4660 A+B
- UVaLive 6482 A+B
- (UVALive 7711)A
- UvaLive 3964 - A Foldy but a Goody
- 慈善餐会 giveaway buffet
- UVALive 4370 A Day at the Races
- UVALive 6198 A Terribly Grimm Problem
- UVALive 6428A+B 【扩展欧几里得】
- UVALive 6919 A game for kids
- Uvalive 6428 A+B(扩展欧几里得算法)
- UVALive 6428 A+B // 扩展欧几里德
- UVALive 7261 A - Xiongnu's Land
- UVALive 6428 A+B 扩展欧几里德
- UVALive - 7271 A Math Problem (hihocoder 1259)
- UVALive-3683 A Scheduling Problem(treedp)
- [UVALive 6696] A Generalized N-Queens Problem
- UVALive
- CentOS下的Hadoop安装教程
- Android Studio logcat 设置 缓存大小 ,增加logcat条数
- 二叉树的前序遍历
- hdu 1004 让气球飞 (map)
- Idea使用技巧
- A Giveaway UVALive
- C++学习笔记:基础知识
- 联网在线毁了《模拟城市5》!打造自己的城市不需要网络
- Shodan
- 初识 Vim ,未来的路还很长
- js闭包初探
- jzoj【GDOI2017第二轮模拟day2】开房间
- 1013. 数素数 (20)
- poj 2182 线段树