2019年1月22日

1120 Friend Numbers

摘要: 题目大意是求一些数字的各位和,看一下有多少不同的,并且按升序输出,水题~ #include <iostream> #include <cstring> #include <string> #include <sstream> #include <string> #include <cstdio> # 阅读全文

posted @ 2019-01-22 20:26 FTA_Macro 阅读(192) 评论(0) 推荐(0) 编辑

1144 The Missing Number

摘要: 题目大意是找出没有在给定数列中最小的正数。 20分,水题,一开始写了个map暴力,果然可以过_(:3」∠)_ 想了想,把所有正数排序去重一下,最差的情况就是从1到n都已经有了,详见代码。 #include <iostream> #include <cstring> #include <string> 阅读全文

posted @ 2019-01-22 13:48 FTA_Macro 阅读(118) 评论(0) 推荐(0) 编辑

导航