https://pintia.cn/problem-sets/994805260223102976/problems/994805263624683520
全是坑 题干太长了
#include <iostream>
#include <map>
using namespace std;
struct test {
double maxscore = 0.0, halfscore = 0.0;
int answer = 0, cnt_choice = 0, correct = 0, cnt = 0, err[300] = { 0 };
};
int main() {
map<char, int> match;
match['a'] = 1; match['b'] = 2; match['c'] = 4; match['d'] = 8; match['e'] = 16;
int N, M, a = 1, b = 2, c = 4, d = 8, e = 16;
cin >> N >> M;
test exam[105];
for (int i = 0; i < M; i++) {
char c;
cin >> exam[i].maxscore >> exam[i].cnt_choice >> exam[i].correct;
for (int j = 0; j < exam[i].correct; j++) {
cin >> c;
exam[i].answer += matc