poj2196
来源:互联网 发布:java性能分析工具 编辑:程序博客网 时间:2024/06/14 19:27
#include<stdio.h>int calc(int k,int b){ //k的b进制 sumint sum=0;while(k){sum+=k%b;k/=b;}return sum;}int main(){int i=2992;for(;i<=9999;i++)if(calc(i,10)==calc(i,12)&&calc(i,12)==calc(i,16))printf("%d\n",i);return 0; }
0 0
- poj2196
- poj2196
- poj2196
- Specialized Four-Digit Numbers(poj2196)
- POJ2196 HDU1197 ZOJ2405 Specialized Four-Digit Numbers【进制+水题】
- POJ 1038 Bugs Integrated, Inc. 状态压缩DP
- 最小生成树算法汇总 (普里姆 && 克鲁斯卡尔与并查集结合)
- 矩阵链乘法2(15章:动态规划)。。。2014.5.30
- Zero Copy I: User-Mode Perspective (1)
- PCA(Principal Component Analysis)之个人理解
- poj2196
- 思维框架
- 打印1到最大的n位数(循环方法)
- 经典旅游01背包
- 如何监控统计BW报表的执行时间-ST13
- Zero Copy I: User-Mode Perspective (2)
- uva 147 Dollars
- linux netlink套接字学习资料
- XML