博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
【HDOJ】1197 Specialized Four-Digit Numbers
阅读量:7104 次
发布时间:2019-06-28

本文共 396 字,大约阅读时间需要 1 分钟。

水题,暴力可解。

#include 
using namespace std;int chg(int n, int base);int main() { int i; int tmp; for (i=2992; i<10000; i++) { tmp = chg(i, 10); if ( tmp == chg(i, 16) && tmp == chg(i, 12) ) cout <
<
0) { sum += n % base; n = n / base; } return sum;}

 

转载于:https://www.cnblogs.com/bombe1013/p/3574412.html

你可能感兴趣的文章
Linux系统新手学习的11点建议
查看>>
Github上传代码菜鸟超详细教程【转】
查看>>
SVN上的项目如何迁移到Git
查看>>
多级<select>选择的实现(利用selectedIndex属性)
查看>>
Apache Rewrite
查看>>
转贴: QUARTUS 实现远程控制的简单方法
查看>>
开源还是商用?十大云运维监控工具横评
查看>>
python3 科学计算2
查看>>
Mysql启动失败Can’t connect to local MySQL server throu
查看>>
大学四年的学习经历
查看>>
viewController
查看>>
Filebeat入门
查看>>
Java之字符串和字符串缓冲区
查看>>
tomcat、oracle、centos时区异常处理
查看>>
Raspberry Pi双网卡bonding
查看>>
HDU1022
查看>>
Nginx - 文章 - 伯乐在线 大量 Nginx资料
查看>>
Genymotion初体验
查看>>
JBoss 系列二十一:JBossCache 核心API
查看>>
Apache下htaccess文件不起作用/rewrite 没有效果
查看>>