#include <iostream>
using namespace std;
int main() {
//I'm going to make an alias to cin, just so we can pretend
//the code later is reading from a file
istream& fin = cin; //just pretend I opened a file here
int num_lines; //read the first line of the file
fin >> num_lines; //to see how many lines need to be read
double A=0, B=0, C=0, D=0, E=0; //initalize all the totals to zero
for(int i=0; i<num_lines; ++i) {
char team;
double score;
fin >> team >> score; //read team and score from each line
//use a switch statement on team to figure out which variable
//your program should add score to
}
//do whatever else you need to do with the tallied scores
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CgkvL0knbSBnb2luZyB0byBtYWtlIGFuIGFsaWFzIHRvIGNpbiwganVzdCBzbyB3ZSBjYW4gcHJldGVuZAoJLy90aGUgY29kZSBsYXRlciBpcyByZWFkaW5nIGZyb20gYSBmaWxlCglpc3RyZWFtJiBmaW4gPSBjaW47IC8vanVzdCBwcmV0ZW5kIEkgb3BlbmVkIGEgZmlsZSBoZXJlCgkKCWludCBudW1fbGluZXM7ICAgIC8vcmVhZCB0aGUgZmlyc3QgbGluZSBvZiB0aGUgZmlsZQoJZmluID4+IG51bV9saW5lczsgLy90byBzZWUgaG93IG1hbnkgbGluZXMgbmVlZCB0byBiZSByZWFkCgkKCWRvdWJsZSBBPTAsIEI9MCwgQz0wLCBEPTAsIEU9MDsgLy9pbml0YWxpemUgYWxsIHRoZSB0b3RhbHMgdG8gemVybwoJCglmb3IoaW50IGk9MDsgaTxudW1fbGluZXM7ICsraSkgewoJCWNoYXIgdGVhbTsKCQlkb3VibGUgc2NvcmU7CgkJZmluID4+IHRlYW0gPj4gc2NvcmU7IC8vcmVhZCB0ZWFtIGFuZCBzY29yZSBmcm9tIGVhY2ggbGluZQoJCQoJCS8vdXNlIGEgc3dpdGNoIHN0YXRlbWVudCBvbiB0ZWFtIHRvIGZpZ3VyZSBvdXQgd2hpY2ggdmFyaWFibGUKCQkvL3lvdXIgcHJvZ3JhbSBzaG91bGQgYWRkIHN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