作者: Stanley B.Lippman
Josee Lajoie
BarBara E.Moo
翻译: 李师贤 蒋爱军 梅晓勇 林瑛
出版: 人民邮电出版社 2006.3
书号: ISBN 7-115-14554-7
TP312C/l33g4
阅读: 通读
日期: 2006.07.21-2006.07.26
心情好,时间足的时候补上。
墨衍会员
·
AI 创作全网分发
墨衍智能分发
本文由作者通过墨衍一键同步至各平台
1分发平台
1.8k累计阅读
1.9k平均单平台
已同步平台
CSDN
微信公众号
微博
知乎
掘金
百家号
博客园
抖音
小红书
你的文章也可以这样分发
墨衍会员 ¥399起/年,写一次发全网
我也要 →
码龄21年
hdu 5373 The shortest problem(水)
题目链接:hdu 5373 The shortest problem #include #include #include #include using namespace std; const int mod = 11; int s; int solve (int k, int n) { int a[105], ca = 0; while (n) { a[ca++
2015多校第7场 HDU 5373 The shortest problem 规律,暴力
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=5373 题意:把一个数的数位之和加到这个数的后面,构成新数,继续这样操作,操作m轮,问最后这个数可以整除11吗? 解法:能被11整除的数的特征 把一个数由右边向左边数,将奇位上的数字与偶位上的数字分别加起来,再求它们的差,如果这个差是11的倍数(包括0),那么,原来这个数就一定能被11整除。代码
HDU5373 The shortest problem (YY)
http://acm.hdu.edu.cn/showproblem.php?pid=5373 YY题,模拟下计算过程就好了,计算中并不要保存实际数(这个数会非常大),只要保存到目前为止的数字位上的和 与 奇偶位上的差即可 #pragma comment(linker, "/STACK:1677721600") #include <map> #incl...
[hdu5373 The shortest problem]模拟
http://acm.hdu.edu.cn/showproblem.php?pid=5373 思路:按题意来即可。 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 ...
HDU 5373
模拟
HDU 5373 乱搞
点击打开链接 题意:给一个数n和t,每一次操作是将n的所有位的和的值加在n的后面,共操作t次,问最后形成的数能否被11整除 思路:首先要知道的是什么样的数可以被11整除,百度一下只要这个数的奇数位的和与偶数位的和的值可以被11整除就可以了,那就好办了,直接模拟一下这个数的进程,然后统计奇偶的和就行了#include #include #include #include #include
HDU5373 The shortest problem 数学水题
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=5373 题目大意:给你一个整数n和操作次数t,对于每次操作,我们把n的各个位上的数字加起来,把得到的数放到n的末尾形成一个新的整数n',例如n=123,t=3,我们有变换123=>1236=>12312=>1231215,最终得到的n'=1231215,现在我们要判断n'能否被11整除。
HDU 5373 The shortest problem //模拟
题目描述HDOJ 5373 The shortest problem解题思路题目大意: 给一个数n, 比如123, 每次操作后把之前各位数字之和加到末尾 由于1+2+3 = 6 所以 123->1236 类似得到1236->123612->… 问,经过t次操作后,得到的数是否能被11整除.首先需要知道的是,被11整除的性质是”奇偶位的和之差能被11整除”. 然后根据此性质开始模拟操作过程即可
hdu 5373 The shortest problem
hdu 5373 The shortest problemProblem Description In this problem, we should solve an interesting game. At first, we have an integer n, then we begin to make some funny change. We sum up every digit of
HDU5373 整除11
HDU5373 The shortest problem 一个数能被11整除,那么它的奇数位和与偶数位和的差能整除11 比如:35816能整除11,(3+8+6)-(5+1)=11,11也能整除11 题意:给了一个数比如n,进行t次操作,每次把每一位求和,补在后面,形成一个新的数,经过t次操作得到的新数能否整除11。 比如n=123,t=3: 第1次:1+2+3=6,得到1236; 第2
HDU5373——同余模——The shortest problem
http://acm.hdu.edu.cn/showproblem.php?pid=5373 /************************************************ * Author :Powatr * Created Time :2015-8-12 9:23:18 * File Name :1003.cpp *****...

被折叠的 条评论
为什么被折叠?



