灯泡问题:AC #include<iostream> #include<vector> using namespace std; int main() { long n; while(cin >> n) { int ai; bool flag; int cnt = 0; vector<int> lamp; for(int i =0; i <n; ++i){ cin >> ai; lamp.push_back(ai); } flag = ...