if (result=="CE") { b[x][id[0]-'A']=0; } else if (result=="AC") { b[x][id[0]-'A']=max(r[id[0]-'A']/10*3,r[id[0]-'A']-t*(r[id[0]-'A']/250)-50*a[x][id[0]-'A']); a[x][id[0]-'A']++; } else { ...