上一页 1 ··· 5 6 7 8 9 10 11 12 下一页
摘要: 31分代码,还有最后一个测试点没过 1 #include<iostream> 2 #include <map> 3 using namespace std; 4 #define infinite 100000000 5 int main() 6 { 7 int built[101][101]; 8 阅读全文
posted @ 2020-05-04 16:06 幻想Elapse 阅读(328) 评论(0) 推荐(0) 编辑
摘要: 最后一个测试点有几率不超时 1 #include <iostream> 2 #include <string> 3 #include <map> 4 #include <vector> 5 #include <algorithm> 6 using namespace std; 7 int main( 阅读全文
posted @ 2020-05-04 09:54 幻想Elapse 阅读(226) 评论(0) 推荐(0) 编辑
摘要: 1 #include <iostream> 2 #include<iomanip> 3 #include <map> 4 #include <string> 5 #include <cstring> 6 #include <queue> 7 #include <vector> 8 using nam 阅读全文
posted @ 2020-05-03 23:37 幻想Elapse 阅读(273) 评论(0) 推荐(0) 编辑
摘要: 先将所有学生的信息按姓名字典序排序,再根据每个学生选的课程号码分别放入相应链表存储,最后输出每个链表的信息。 1 /*每个课程当做一个桶,桶里面用链表按学生姓名字典序存储学生,最后直接输出每个桶的内容,排序的时候使用头插法*/ 2 #include<iostream> 3 #include <map 阅读全文
posted @ 2020-05-02 21:13 幻想Elapse 阅读(359) 评论(0) 推荐(0) 编辑
摘要: 1 #include<iostream> 2 #include <map> 3 #include <string> 4 #include <cstring> 5 using namespace std; 6 map<string, long long int> num;//某话题出现次数 7 int 阅读全文
posted @ 2020-05-02 17:25 幻想Elapse 阅读(312) 评论(1) 推荐(0) 编辑
摘要: 1 #include<iostream> 2 #include<cstdio> 3 #include <map> 4 #include <string> 5 using namespace std; 6 int main() 7 { 8 map<string, int> m; 9 long int 阅读全文
posted @ 2020-04-28 21:31 幻想Elapse 阅读(576) 评论(0) 推荐(0) 编辑
摘要: 代码来源 1 #include<iostream> 2 #include <map> 3 #include <iomanip> 4 #include <string> 5 #include <cstring> 6 using namespace std; 7 map<string, bool>m[1 阅读全文
posted @ 2020-04-28 19:46 幻想Elapse 阅读(316) 评论(0) 推荐(0) 编辑
摘要: 1 #include <iostream> 2 #include <string> 3 #include <cstring> 4 using namespace std; 5 int main() 6 { 7 char a[501][10];//存储字符串 8 int pos[501];//字符串存 阅读全文
posted @ 2020-04-28 11:24 幻想Elapse 阅读(335) 评论(0) 推荐(0) 编辑
摘要: 1 #include <iostream> 2 using namespace std; 3 4 int main() 5 { 6 int N, P; 7 cin >> N >> P; 8 int flag[1100] = { 0 }; 9 int p[65536]; 10 for(int i=0; 阅读全文
posted @ 2020-04-27 15:21 幻想Elapse 阅读(481) 评论(0) 推荐(0) 编辑
摘要: 分别在组内排序,先得出组内的排名。最后总体进行排序,得出总体排名。 1 #include <iostream> 2 #include <algorithm> 3 #include <string> 4 #include <cstdio> 5 using namespace std; 6 struct 阅读全文
posted @ 2020-04-27 15:20 幻想Elapse 阅读(918) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 下一页