Pat(A) 1074. Reversing Linked List (25)

原题目:

原题链接:https://www.patest.cn/contests/pat-a-practise/1074

1074. Reversing Linked List (25)


Given a constant K and a singly linked list L, you are supposed to reverse the links of every K elements on L. For example, given L being 1→2→3→4→5→6, if K = 3, then you must output 3→2→1→6→5→4; if K = 4, you must output 4→3→2→1→5→6.

继续阅读


Pat(A) 1073. Scientific Notation (20)

原题目:

原题链接:https://www.patest.cn/contests/pat-a-practise/1073

1073. Scientific Notation (20)


Scientific notation is the way that scientists easily handle very large numbers or very small numbers. The notation matches the regular expression [+-][1-9]"."[0-9]+E[+-][0-9]+ which means that the integer portion has exactly one digit, there is at least one digit in the fractional portion

继续阅读


Pat(A) 1072. Gas Station (30)

原题目:

原题链接:https://www.patest.cn/contests/pat-a-practise/1072

1072. Gas Station (30)


A gas station has to be built at such a location that the minimum distance between the station and any of the residential housing is as far away as possible. However it must guarantee that all the houses are in its service range.

继续阅读


Pat(A) 1071. Speech Patterns (25)

原题目:

原题链接:https://www.patest.cn/contests/pat-a-practise/1071

1071. Speech Patterns (25)


People often have a preference among synonyms of the same word. For example, some may prefer "the police", while others may prefer "the cops". Analyzing such patterns can help to narrow down a speaker's identity, which is useful when validating, for example, whether it's still the same person behind an online avatar.

继续阅读


Pat(A) 1070. Mooncake (25)

原题目:

原题链接:https://www.patest.cn/contests/pat-a-practise/1070

1070. Mooncake (25)


Mooncake is a Chinese bakery product traditionally eaten during the Mid-Autumn Festival. Many types of fillings and crusts can be found in traditional mooncakes according to the region's culture. Now given the inventory amounts and the prices of all kinds of the mooncakes, together with the maximum total demand of the market, you are supposed to

继续阅读


Pat(A) 1069. The Black Hole of Numbers (20)

原题目:

原题链接:https://www.patest.cn/contests/pat-a-practise/1069

1069. The Black Hole of Numbers (20)


For any 4-digit integer except the ones with all the digits being the same, if we sort the digits in non-increasing order first, and then in non-decreasing order, a new number can be obtained by taking the second number from the first one. Repeat in this manner we will soon end u

继续阅读


Pat(A) 1001. A+B Format (20)

原题目:

原题链接:https://www.patest.cn/contests/pat-a-practise/1001

1001. A+B Format (20)


Calculate a + b and output the sum in standard format -- that is, the digits must be separated into groups of three by commas (unless there are less than four digits). Input Output For each test case, you should output the s

继续阅读


关于api-ms-win-crt-runtimel1-1-0.dll缺失的解决方案

关于api-ms-win-crt-runtimel1-1-0.dll缺失的解决方案

有时我们在使用文件程序的时候,碰到一些问题,提示dll文件缺失,例如标题中的。 错误提示

有些情况下载这些dll文件补上就行,有些则不行,像标题这种情况,则需要安装一个小程序。

安装VC redit.exe程序解决

是VC的一个程序:[VC redit.exe][1] 链接:https://www.microsoft.com/zh-cn/download/details.aspx?id=48145

下载时选择x86还是x64的根据自己系统的需求,安装成功就可以了。

继续阅读


Powered by Django 2. Copyright © 2014.

huchengbei.com. All rights reserved.