2021年9月14日

1077 互评成绩计算 (20 point(s))

摘要: 中间写错了一次,错把分组数 N - 1 当初平均分的人数,实际的人数应该不包含 [0,M] 范围之外,并且要剔除最高和最低分的人。 后面调试时候才发现测试样例是有重复数据的,所以不能用 set 得用 multiset 。用 map 和 set 的时候还是得注意数据里面是否有重复的数据,不然就像前面 阅读全文

posted @ 2021-09-14 22:49 Atl212 阅读(40) 评论(0) 推荐(0)

1076 Wifi密码 (15 point(s))

摘要: #include <bits/stdc++.h> using namespace std; int main() { int n; char opt[4][2], c; cin >> n; while(n--){ getchar(); scanf("%c-%c %c-%c %c-%c %c-%c", 阅读全文

posted @ 2021-09-14 09:05 Atl212 阅读(41) 评论(0) 推荐(0)

1075 链表元素分类 (25 point(s))

摘要: // 20 points #include <bits/stdc++.h> using namespace std; struct Node{ string Address; int flag; }; int main() { int n, k, Data; string first, Addres 阅读全文

posted @ 2021-09-14 08:28 Atl212 阅读(37) 评论(0) 推荐(0)

导航