上一页 1 ··· 4 5 6 7 8 9 10 11 下一页

2021年9月5日

1003 我要通过! (20 point(s))

摘要: // 15point 乱来写乱来凑输出 // 虽然能够通过样例,但实际连题目给出的条件都没有全覆盖 #include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; while(n--){ string str; 阅读全文

posted @ 2021-09-05 17:21 Atl212 阅读(52) 评论(0) 推荐(0)

2021年9月4日

1002 写出这个数 (20 point(s))

摘要: #include <bits/stdc++.h> using namespace std; int main() { int sum = 0; stack<int> s; string str, pingyin[10]{"ling", "yi", "er", "san", "si", "wu", " 阅读全文

posted @ 2021-09-04 19:23 Atl212 阅读(34) 评论(0) 推荐(0)

1004 成绩排名 (20 point(s))

摘要: #include <bits/stdc++.h> using namespace std; struct Stu{ string name, id; }; int main() { int n, max = 0, min = 100; map<int, Stu> stu; cin >> n; whi 阅读全文

posted @ 2021-09-04 12:02 Atl212 阅读(34) 评论(0) 推荐(0)

1058 选择题 (20 point(s))

摘要: #include <bits/stdc++.h> using namespace std; struct Question{ int score, num, cor; set<char> copt; }; int main() { // 批改选择题 指出错误人数最多题目 // 输入 学生人数 多选题 阅读全文

posted @ 2021-09-04 11:49 Atl212 阅读(50) 评论(0) 推荐(0)

2021年9月3日

1057 数零壹 (20 point(s))

摘要: #include <bits/stdc++.h> using namespace std; int main() { // 数N表示成二进制的1 0 个数 int zero = 0, one = 0, N = 0; string str; // 可能有空格 getline(cin, str); // 阅读全文

posted @ 2021-09-03 17:12 Atl212 阅读(36) 评论(0) 推荐(0)

1056 组合数的和 (15 point(s))

摘要: // 不想思考暴力法 #include <bits/stdc++.h> using namespace std; int main() { // N 非零个位 任意两个组合成二位数字 // 求所有可能组合数之和 int n, sum = 0, a[10]; cin >> n; for(int i = 阅读全文

posted @ 2021-09-03 16:00 Atl212 阅读(56) 评论(0) 推荐(0)

1055 集体照 (25 point(s))

摘要: // 未精简全AC代码 // Bob175 Tom 188 Joe 190 Nick186 // Ann168 Mike170 Eva 168 // Tim160 Amy 160 John159 #include <bits/stdc++.h> using namespace std; struct 阅读全文

posted @ 2021-09-03 12:39 Atl212 阅读(53) 评论(0) 推荐(0)

1054 求平均值 (20 point(s))

摘要: // 正确代码 #include <bits/stdc++.h> using namespace std; int main() { // N个实数 剔除非法数据 求平均值 int n, legal = 0; double result = 0, num = 0; cin >> n; while(n 阅读全文

posted @ 2021-09-03 09:54 Atl212 阅读(70) 评论(0) 推荐(0)

2021年9月2日

1053 住房空置率 (20 point(s))

摘要: #include <bits/stdc++.h> using namespace std; int main() { // 空置率 用电量 连续 变化规律 // 读取 住房套数 低电量阈值 观察期阈值 double e; int n, D, pos = 0, space = 0; cin >> n 阅读全文

posted @ 2021-09-02 21:39 Atl212 阅读(34) 评论(0) 推荐(0)

1052 卖个萌 (20 point(s))

摘要: // 未精简代码 #include <bits/stdc++.h> using namespace std; int main() { // 给出符号集合 按要求输出 // []内为符号 每个集合至少一个符号 ? 左手 // 集合不超过10 个 符号不超过4个字符 string h, e, m, t 阅读全文

posted @ 2021-09-02 20:46 Atl212 阅读(41) 评论(0) 推荐(0)

上一页 1 ··· 4 5 6 7 8 9 10 11 下一页

导航