摘要: 题目描述: 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 阅读全文
posted @ 2022-08-20 22:28 D_coding_blog 阅读(34) 评论(0) 推荐(0)
摘要: 题目描述: A graph which is connected and acyclic can be considered a tree. The height of the tree depends on the selected root. Now you are supposed to fi 阅读全文
posted @ 2022-08-20 22:19 D_coding_blog 阅读(39) 评论(0) 推荐(0)
摘要: 题目描述: Given an integer with no more than 9 digits, you are supposed to read it in the traditional Chinese way. Output Fu first if it is negative. For 阅读全文
posted @ 2022-08-19 23:25 D_coding_blog 阅读(34) 评论(0) 推荐(0)
摘要: 题目描述: Suppose that all the keys in a binary tree are distinct positive integers. Given the postorder and inorder traversal sequences, you are supposed 阅读全文
posted @ 2022-08-18 23:38 D_coding_blog 阅读(33) 评论(0) 推荐(0)
摘要: 题目描述: A long-distance telephone company charges its customers by the following rules: Making a long-distance call costs a certain amount per minute, d 阅读全文
posted @ 2022-08-12 22:40 D_coding_blog 阅读(49) 评论(0) 推荐(0)
摘要: 题目描述: The task is really simple: given N exits on a highway which forms a simple cycle, you are supposed to tell the shortest distance between any pai 阅读全文
posted @ 2022-08-12 16:45 D_coding_blog 阅读(41) 评论(0) 推荐(0)
摘要: 题目大意: With the 2010 FIFA World Cup running, football fans the world over were becoming increasingly excited as the best players from the best teams do 阅读全文
posted @ 2022-08-12 16:33 D_coding_blog 阅读(38) 评论(0) 推荐(0)
摘要: 题目描述: This time, you are supposed to find A×B where A and B are two polynomials. Input Specification: K N1​ aN1​ ​ N2​ aN2​ ​ ... NK​ aNK​ ​ where K i 阅读全文
posted @ 2022-08-12 16:23 D_coding_blog 阅读(32) 评论(0) 推荐(0)
摘要: 题目描述: The highest building in our city has only one elevator. A request list is made up with N positive numbers. The numbers denote at which floors th 阅读全文
posted @ 2022-08-12 16:18 D_coding_blog 阅读(42) 评论(0) 推荐(0)
摘要: 题目描述: At the beginning of every day, the first person who signs in the computer room will unlock the door, and the last one who signs out will lock th 阅读全文
posted @ 2022-08-12 16:11 D_coding_blog 阅读(32) 评论(0) 推荐(0)