Lang:G++
Edit12345678910111213141516171819202122232425262728293031#include <iostream>#include <cstring>#include <cstdio>#include <map>#include <queue>#include <vector>#include <algorithm>using namespace std;int n;struct NameType {string name;int num;string name_2;NameType(const string& na, const int& nu, const string& nb): name(na), num(nu), name_2(nb) {}};bool CompareNameType(const NameType& a, const NameType& b) {if (a.name.compare(b.name) < 0) return true;if (a.name.compare(b.name) > 0) return false;return a.num < b.num;}int Convert(const string& b) {int ret = 0;for (int i = 0; i < b.length(); ) {if (i != b.length() - 1) {bool need_break = false;if (b[i] == 'I' && b[i + 1] == 'V') {ret += 4; need_break = true;}