简单的题目
class KeyDungeonDiv2
{
public:
int countDoors(vector <int> doorR, vector <int> doorG, vector <int> keys)
{
int res = ;
for(int i = ; i < doorR.size(); i ++){
if(doorR[i] <= keys[]+keys[] && doorG[i] <= keys[]+keys[] && doorR[i] + doorG[i] <=keys[]+keys[]+keys[]) res ++;
}
return res;
}
};