上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 24 下一页

2017年7月7日

摘要: 题目传送:https://www.patest.cn/contests/pat-b-practise/1036 美国总统奥巴马不仅呼吁所有人都学习编程,甚至以身作则编写代码,成为美国历史上首位编写计算机代码的总统。2014年底,为庆祝“计算机科学教育周”正式启动,奥巴马编写了很简单的计算机代码:在屏 阅读全文
posted @ 2017-07-07 09:56 Annetree 阅读(165) 评论(0) 推荐(0)

2017年7月6日

摘要: 题目传送:https://www.patest.cn/contests/pat-b-practise/1031 一个合法的身份证号码由17位地区、日期编号和顺序编号加1位校验码组成。校验码的计算规则如下: 首先对前17位数字加权求和,权重分配为:{7,9,10,5,8,4,2,1,6,3,7,9,1 阅读全文
posted @ 2017-07-06 17:28 Annetree 阅读(201) 评论(0) 推荐(0)
 
摘要: 题目传送:https://www.patest.cn/contests/pat-b-practise/1026 要获得一个C语言程序的运行时间,常用的方法是调用头文件time.h,其中提供了clock()函数,可以捕捉从程序开始运行到clock()被调用时所耗费的时间。这个时间单位是clock ti 阅读全文
posted @ 2017-07-06 17:11 Annetree 阅读(169) 评论(0) 推荐(0)
 
摘要: 题目传送:https://www.patest.cn/contests/pat-b-practise/1021 给定一个k位整数N = dk-1*10k-1 + ... + d1*101 + d0 (0<=di<=9, i=0,...,k-1, dk-1>0),请编写程序统计每种不同的个位数字出现的 阅读全文
posted @ 2017-07-06 17:03 Annetree 阅读(117) 评论(0) 推荐(0)
 
摘要: 题目传送:https://www.patest.cn/contests/pat-b-practise/1016 正整数A的“DA(为1位整数)部分”定义为由A中所有DA组成的新整数PA。例如:给定A = 3862767,DA = 6,则A的“6部分”PA是66,因为A中有2个6。 现给定A、DA、B 阅读全文
posted @ 2017-07-06 16:57 Annetree 阅读(201) 评论(0) 推荐(0)
 
摘要: 题目传送:https://www.patest.cn/contests/pat-b-practise/1011 给定区间[-231, 231]内的3个整数A、B和C,请判断A+B是否大于C。 输入格式: 输入第1行给出正整数T(<=10),是测试用例的个数。随后给出T组测试用例,每组占一行,顺序给出 阅读全文
posted @ 2017-07-06 16:47 Annetree 阅读(211) 评论(0) 推荐(0)
 
摘要: Description Bob and Alice started to use a brand-new encoding scheme. Surprisingly it is not a Public Key Cryptosystem, but their encoding and decodin 阅读全文
posted @ 2017-07-06 16:25 Annetree 阅读(172) 评论(0) 推荐(0)

2017年7月5日

摘要: Description We remind that the permutation of some final set is a one-to-one mapping of the set onto itself. Less formally, that is a way to reorder e 阅读全文
posted @ 2017-07-05 17:07 Annetree 阅读(246) 评论(0) 推荐(0)

2017年7月3日

摘要: long long gcd(long long b,long long c)//计算最大公约数{ return c==0?b:gcd(c,b%c);} long long lcm(long long b,long long c)//计算最小公倍数{ return b * c/ gcd(b, c); 阅读全文
posted @ 2017-07-03 15:40 Annetree 阅读(331) 评论(0) 推荐(0)
 
摘要: 题目传送:http://acm.hdu.edu.cn/diy/contest_showproblem.php?cid=20918&pid=1002 Problem Description Now you get a number N, and a M-integers set, you should 阅读全文
posted @ 2017-07-03 15:39 Annetree 阅读(165) 评论(0) 推荐(0)

2017年7月2日

摘要: 题目传送:http://acm.hdu.edu.cn/showproblem.php?pid=2147 Problem Description Recently kiki has nothing to do. While she is bored, an idea appears in his mi 阅读全文
posted @ 2017-07-02 16:21 Annetree 阅读(153) 评论(0) 推荐(0)
 
摘要: 题目传送:http://acm.hdu.edu.cn/showproblem.php?pid=1846 Problem Description 十年前读大学的时候,中国每年都要从国外引进一些电影大片,其中有一部电影就叫《勇敢者的游戏》(英文名称:Zathura),一直到现在,我依然对于电影中的部分电 阅读全文
posted @ 2017-07-02 15:16 Annetree 阅读(209) 评论(0) 推荐(0)

2017年6月30日

摘要: 题目传送:http://acm.hdu.edu.cn/showproblem.php?pid=4704 Problem Description Sample Input 2 2 Sample Output 2 Hint 1. For N = 2, S(1) = S(2) = 1. 2. The in 阅读全文
posted @ 2017-06-30 10:39 Annetree 阅读(924) 评论(0) 推荐(0)

2017年6月29日

摘要: 题目传送:http://acm.hdu.edu.cn/showproblem.php?pid=1205 Problem Description HOHO,终于从Speakless手上赢走了所有的糖果,是Gardon吃糖果时有个特殊的癖好,就是不喜欢将一样的糖果放在一起吃,喜欢先吃一种,下一次吃另一种 阅读全文
posted @ 2017-06-29 16:51 Annetree 阅读(302) 评论(0) 推荐(0)
 
摘要: 题目传送:http://acm.hdu.edu.cn/showproblem.php?pid=5776 Problem Description Given a sequence, you're asked whether there exists a consecutive subsequence 阅读全文
posted @ 2017-06-29 16:30 Annetree 阅读(185) 评论(0) 推荐(0)
上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 24 下一页