摘要: 万能头文件 #include <bits/stdc++.h> 在字符串练习中,来计算a+b,可以采用的方法是用string接收,再用stdlib.h中的atoi(str)函数将string转为int类型数,但是pat中无法使用itoa()函数来将数转为字符串,这样情况下就需要使用sscanf和spr 阅读全文
posted @ 2021-03-09 19:40 coderJ_ONE 阅读(73) 评论(0) 推荐(0) 编辑
摘要: When the input is much too large to fit into memory, we have to do external sorting instead of internal sorting. One of the key steps in external sort 阅读全文
posted @ 2021-03-09 19:22 coderJ_ONE 阅读(737) 评论(0) 推荐(0) 编辑
摘要: A safari park(野生动物园)has K species of animals, and is divided into N regions. The managers hope to spread the animals to all the regions, but not the s 阅读全文
posted @ 2021-03-09 14:23 coderJ_ONE 阅读(49) 评论(0) 推荐(0) 编辑
摘要: A game of numbers has the following rules: at the beginning, two distinct positive integers are given by the judge. Then each player in turn must give 阅读全文
posted @ 2021-03-09 13:59 coderJ_ONE 阅读(94) 评论(0) 推荐(0) 编辑
摘要: The above picture is from Sina Weibo, showing May 23rd, 2019 as a very cool "Prime Day". That is, not only that the corresponding number of the date 2 阅读全文
posted @ 2021-03-09 12:49 coderJ_ONE 阅读(54) 评论(0) 推荐(0) 编辑