10 2015 档案
HDOJ 2212 DFS
摘要:Problem Description A DFS(digital factorial sum) number is found by summing the factorial of every digit of a positive integer. For example ,... 阅读全文
posted @ 2015-10-31 14:31 cnxo 阅读(138) 评论(0) 推荐(0)
POJ 2260(ZOJ 1949) Error Correction 一个水题
摘要:DescriptionA boolean matrix has the parity property when each row and each column has an even sum, i.e. contains an even number of bits which... 阅读全文
posted @ 2015-10-30 20:37 cnxo 阅读(233) 评论(0) 推荐(0)
HDOJ 1716 排列2 next_permutation函数
摘要:Problem Description Ray又对数字的列产生了兴趣: 现有四张卡片,用这四张卡片能排列出很多不同的4位数,要求按从小到大的顺序输出这些4位数。Input 每组数据占一行,代表四张卡片上的数字(0#include#includeint a[6],vis[5],t,s... 阅读全文
posted @ 2015-10-30 13:48 cnxo 阅读(161) 评论(0) 推荐(0)
POJ 1159 Palindrome 最长公共子序列的问题
摘要:Description A palindrome is a symmetrical string, that is, a string read identically from left to right as well as from right to left. You ar... 阅读全文
posted @ 2015-10-29 14:03 cnxo 阅读(146) 评论(0) 推荐(0)
HDOJ 1032(POJ 1207) The 3n + 1 problem
摘要:DescriptionProblems in Computer Science are often classified as belonging to a certain class of problems (e.g., NP, Unsolvable, Recursive). I... 阅读全文
posted @ 2015-10-26 19:01 cnxo 阅读(133) 评论(0) 推荐(0)
HDOJ 2030 汉字统计
摘要:Problem Description 统计给定文本文件中汉字的个数。Input 输入文件首先包含一个整数n,表示测试实例的个数,然后是n段文本。Output 对于每一段文本,输出其中的汉字的个数,每个测试实例的输出占一行。[Hint:]从汉字机内码的特点考虑~Sample Inp... 阅读全文
posted @ 2015-10-26 18:55 cnxo 阅读(159) 评论(0) 推荐(0)
HDOJ 1312 (POJ 1979) Red and Black
摘要:Problem Description There is a rectangular room, covered with square tiles. Each tile is colored either red or black. A man is standing on a ... 阅读全文
posted @ 2015-10-26 18:51 cnxo 阅读(136) 评论(0) 推荐(0)
POJ 1503 Integer Inquiry 简单大数相加
摘要:DescriptionOne of the first users of BIT’s new supercomputer was Chip Diller. He extended his exploration of powers of 3 to go from 0 to 333 ... 阅读全文
posted @ 2015-10-24 13:59 cnxo 阅读(174) 评论(0) 推荐(0)
POJ 1936 All in All
摘要:DescriptionYou have devised a new encryption technique which encodes a message by inserting between its characters randomly generated strings... 阅读全文
posted @ 2015-10-23 18:42 cnxo 阅读(137) 评论(0) 推荐(0)