- 博客(9)
- 收藏
- 关注
原创 全排列
时间限制: 5 Sec 内存限制: 128 MB题目描述给你一个字符串,按字典序从小到大输出这个字符串的全排列输入一个由小写字母组成的长度小于等于8的不含重复字符的字符串输出按字典序从小到大输出这个字符串的全排列样例输入abc样例输出abcacbbacbcacabcba对于这个按字典序全排列的话,STL中有个十分方便的函数 next_permutation() 与...
2018-06-19 20:28:17 218
原创 Error Correction
时间限制: 1 Sec 内存限制: 64 MB题目描述A 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 are set. Here's a 4 x 4 matrix which has ...
2018-06-19 18:25:35 660
原创 Dirichlet's Theorem on Arithmetic Progressions
时间限制: 1 Sec 内存限制: 64 MB题目描述If a and d are relatively prime positive integers, the arithmetic sequence beginning with a and increasing by d, i.e., a, a + d, a + 2d, a + 3d, a + 4d, ..., contains infin...
2018-06-19 15:23:47 253
原创 Specialized Four-Digit Numbers
时间限制: 1 Sec 内存限制: 64 MB题目描述Find and list all four-digit numbers in decimal notation that have the property that the sum of its four digits equals the sum of its digits when represented in hexadecimal...
2018-06-19 15:21:54 173
原创 What Day Is It?
时间限制: 2 Sec 内存限制: 64 MB题目描述The calendar now in use evolved from the Romans. Julius Caesar codified a calendar system that came to be known as the Julian calendar. In this system, all months have 31 d...
2018-06-12 21:12:27 436
原创 Calendar
时间限制: 1 Sec 内存限制: 30 MB题目描述A calendar is a system for measuring time, from hours and minutes, to months and days, and finally to years and centuries. The terms of hour, day, month, year and century a...
2018-06-12 19:33:34 319
原创 Red and Black
时间限制: 1 Sec 内存限制: 30 MB题目描述There is a rectangular room, covered with square tiles. Each tile is colored either red or black. A man is standing on a black tile. From a tile, he can move to one of four...
2018-06-12 19:06:16 217
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人