上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 24 下一页
摘要: For a positive integer N , the digit-sum of N is defined as the sum of N itself and its digits. When M is the digitsum of N , we call ... 阅读全文
posted @ 2018-07-18 08:30 浮生惘语 阅读(103) 评论(0) 推荐(0)
摘要: MasterMind is a game for two players. One of them, Designer, selects a secret code. The other, Breaker, tries to break it. A code is n... 阅读全文
posted @ 2018-07-18 08:23 浮生惘语 阅读(136) 评论(0) 推荐(0)
摘要: A思路:主要是注意格式问题,每两组输出间要有空行,所以最后不必多出空行;#include#include#include#includeusing namespace std;int main(){ int t; cin>>t; while(t--) { int n... 阅读全文
posted @ 2018-07-17 15:29 浮生惘语 阅读(88) 评论(0) 推荐(0)
摘要: A regular palindrome is a string of numbers or letters that is the same forward as backward. For example, the string "ABCDEDCBA" is a ... 阅读全文
posted @ 2018-07-17 13:14 浮生惘语 阅读(128) 评论(0) 推荐(0)
摘要: A common typing error is to place the hands on the keyboard one row to the right of the correct position. So "Q" is typed as "W" and "... 阅读全文
posted @ 2018-07-17 13:06 浮生惘语 阅读(152) 评论(0) 推荐(0)
摘要: TeX is a typesetting language developed by Donald Knuth. It takes source text together with a few typesetting instructions and produce... 阅读全文
posted @ 2018-07-17 12:59 浮生惘语 阅读(161) 评论(0) 推荐(0)
摘要: 斯特林公式(Stirling's approximation)是一条用来取n的阶乘的近似值的数学公式。一般来说,当n很大的时候,n阶乘的计算量十分大,所以斯特林公式十分好用,而且,即使在n很小的时候,斯特林公式的取值已经十分准确。 ... 阅读全文
posted @ 2018-07-16 18:23 浮生惘语 阅读(813) 评论(0) 推荐(0)
摘要: A此题,emmmm,有毒,很容易出现各种bug,还是自己菜,不能动不动就觉得是数据有问题,此题肯定要用字符串,模拟的题,代码有点长(蒟蒻瑟瑟发抖),不过不难理解,仔细看看就明白了,主要是细节方面的处理#include#include#include#includeus... 阅读全文
posted @ 2018-07-11 18:11 浮生惘语 阅读(133) 评论(0) 推荐(0)
摘要: 题目背景统计天数题目描述炎热的夏日,KC非常的不爽。他宁可忍受北极的寒冷,也不愿忍受厦门的夏天。最近,他开始研究天气的变化。他希望用研究的结果预测未来的天气。经历千辛万苦,他收集了连续N(1#include#include#define N 1e7using name... 阅读全文
posted @ 2018-07-08 17:18 浮生惘语 阅读(208) 评论(0) 推荐(0)
摘要: 题目描述每一本正式出版的图书都有一个ISBN号码与之对应,ISBN码包括 999 位数字、 111 位识别码和 333 位分隔符,其规定格式如x-xxx-xxxxx-x,其中符号-就是分隔符(键盘上的减号),最后一位是识别码,例如0-670-82162-4就是一个标准... 阅读全文
posted @ 2018-07-08 17:16 浮生惘语 阅读(253) 评论(0) 推荐(0)
上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 24 下一页