上一页 1 ··· 5 6 7 8 9 10 11 下一页
摘要: A number that will be the same when it is written forwards or backwards is known as a Palindromic Number. For example, 1234321 is a palindromic number. All single digit numbers are palindromic numbers... 阅读全文
posted @ 2015-12-06 10:28 白夜行zz 阅读(325) 评论(0) 推荐(0)
摘要: Notice that the number 123456789 is a 9-digit number consisting exactly the numbers from 1 to 9, with no duplication. Double it we will obtain 246913578, which happens to be another 9-digit number con... 阅读全文
posted @ 2015-12-06 10:25 白夜行zz 阅读(162) 评论(0) 推荐(0)
摘要: A Digital Library contains millions of books, stored according to their titles, authors, key words of their abstracts, publishers, and published years. Each book is assigned an unique 7-digit number a... 阅读全文
posted @ 2015-12-06 10:24 白夜行zz 阅读(219) 评论(0) 推荐(0)
摘要: 首先计算连通分量。dfs然后分两种情况,n数目很小的时候对每个节点dfs,n大的时候超时n数目大的时候计算只具有单边的节点数。n小的时候答案错误两者结合就好了,当然这是一种不可取的办法。。。。。A graph which is connected and acyclic can be considered a tree. The height of the tree depends on the ... 阅读全文
posted @ 2015-12-06 10:22 白夜行zz 阅读(206) 评论(0) 推荐(0)
摘要: 根据两种遍历方式建立二叉树层遍历二叉树时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueSuppose that all the keys in a binary tree are distinct positive integers. Given the postorder and inorder traversal sequen... 阅读全文
posted @ 2015-12-06 10:19 白夜行zz 阅读(135) 评论(0) 推荐(0)
摘要: 比较复杂的dfs 注意算好到底需要send多少take back多少时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueThere is a public bike service in Hangzhou City which provides great convenience to the tourists from all ov... 阅读全文
posted @ 2015-12-06 10:18 白夜行zz 阅读(145) 评论(0) 推荐(0)
摘要: 时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueA number that will be the same when it is written forwards or backwards is known as a Palindromic Number. For example, 1234321 is a palindromi... 阅读全文
posted @ 2015-12-06 10:18 白夜行zz 阅读(148) 评论(0) 推荐(0)
摘要: 时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, Yue 去掉非法数据计算账单A long-distance telephone company charges its customers by the following rules:Making a long-distance call costs a certain amoun... 阅读全文
posted @ 2015-12-06 10:17 白夜行zz 阅读(305) 评论(0) 推荐(0)
摘要: 排队模型时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueSuppose a bank has K windows open for service. There is a yellow line in front of the windows which devides the waiting area into two part... 阅读全文
posted @ 2015-12-06 10:17 白夜行zz 阅读(158) 评论(0) 推荐(0)
摘要: 1,不同基底的反数算法,2,输入 cin 使用A reversible prime in any number system is a prime whose "reverse" in that number system is also a prime. For example in the decimal system 73 is a reversible prime because its ... 阅读全文
posted @ 2015-12-06 10:15 白夜行zz 阅读(131) 评论(0) 推荐(0)
上一页 1 ··· 5 6 7 8 9 10 11 下一页