5af29f0d04 2012-04-01 kinaba: #include <iostream> 5af29f0d04 2012-04-01 kinaba: #include <sstream> 5af29f0d04 2012-04-01 kinaba: #include <iomanip> 5af29f0d04 2012-04-01 kinaba: #include <vector> 5af29f0d04 2012-04-01 kinaba: #include <string> 5af29f0d04 2012-04-01 kinaba: #include <map> 5af29f0d04 2012-04-01 kinaba: #include <set> 5af29f0d04 2012-04-01 kinaba: #include <algorithm> 5af29f0d04 2012-04-01 kinaba: #include <numeric> 5af29f0d04 2012-04-01 kinaba: #include <iterator> 5af29f0d04 2012-04-01 kinaba: #include <functional> 5af29f0d04 2012-04-01 kinaba: #include <complex> 5af29f0d04 2012-04-01 kinaba: #include <queue> 5af29f0d04 2012-04-01 kinaba: #include <stack> 5af29f0d04 2012-04-01 kinaba: #include <cmath> 5af29f0d04 2012-04-01 kinaba: #include <cassert> 5af29f0d04 2012-04-01 kinaba: #include <cstring> 5af29f0d04 2012-04-01 kinaba: #ifdef __GNUC__ 5af29f0d04 2012-04-01 kinaba: #include <ext/hash_map> 5af29f0d04 2012-04-01 kinaba: #define unordered_map __gnu_cxx::hash_map 5af29f0d04 2012-04-01 kinaba: #else 5af29f0d04 2012-04-01 kinaba: #include <unordered_map> 5af29f0d04 2012-04-01 kinaba: #endif 5af29f0d04 2012-04-01 kinaba: using namespace std; 5af29f0d04 2012-04-01 kinaba: typedef long long LL; 5af29f0d04 2012-04-01 kinaba: typedef complex<double> CMP; 5af29f0d04 2012-04-01 kinaba: 5af29f0d04 2012-04-01 kinaba: struct UnionFind 5af29f0d04 2012-04-01 kinaba: { 5af29f0d04 2012-04-01 kinaba: vector<int> uf, sz; 5af29f0d04 2012-04-01 kinaba: int nc; 5af29f0d04 2012-04-01 kinaba: 5af29f0d04 2012-04-01 kinaba: UnionFind(int N): uf(N), sz(N,1), nc(N) 5af29f0d04 2012-04-01 kinaba: { for(int i=0; i<N; ++i) uf[i] = i; } 5af29f0d04 2012-04-01 kinaba: int size() 5af29f0d04 2012-04-01 kinaba: { return nc; } 5af29f0d04 2012-04-01 kinaba: int Find(int a) 5af29f0d04 2012-04-01 kinaba: { return uf[a]==a ? a : uf[a]=Find(uf[a]); } 5af29f0d04 2012-04-01 kinaba: bool Union(int a, int b) 5af29f0d04 2012-04-01 kinaba: { 5af29f0d04 2012-04-01 kinaba: a = Find(a); 5af29f0d04 2012-04-01 kinaba: b = Find(b); 5af29f0d04 2012-04-01 kinaba: if( a != b ) 5af29f0d04 2012-04-01 kinaba: { 5af29f0d04 2012-04-01 kinaba: if( sz[a] >= sz[b] ) swap(a, b); 5af29f0d04 2012-04-01 kinaba: uf[a] = b; 5af29f0d04 2012-04-01 kinaba: sz[b] += sz[a]; 5af29f0d04 2012-04-01 kinaba: --nc; 5af29f0d04 2012-04-01 kinaba: } 5af29f0d04 2012-04-01 kinaba: return (a!=b); 5af29f0d04 2012-04-01 kinaba: } 5af29f0d04 2012-04-01 kinaba: }; 5af29f0d04 2012-04-01 kinaba: 5af29f0d04 2012-04-01 kinaba: class EllysLights { public: 5af29f0d04 2012-04-01 kinaba: int getMinimum(string initial, vector <string> switches) 5af29f0d04 2012-04-01 kinaba: { 5af29f0d04 2012-04-01 kinaba: int N = switches.size(); 5af29f0d04 2012-04-01 kinaba: UnionFind uf(N*2+2); 5af29f0d04 2012-04-01 kinaba: #define TR 0 5af29f0d04 2012-04-01 kinaba: #define FL 1 5af29f0d04 2012-04-01 kinaba: #define POS(x) ((x)+2) 5af29f0d04 2012-04-01 kinaba: #define NEG(x) ((x)+N+2) 5af29f0d04 2012-04-01 kinaba: 5af29f0d04 2012-04-01 kinaba: for(int i=0; i<initial.size(); ++i) 5af29f0d04 2012-04-01 kinaba: { 5af29f0d04 2012-04-01 kinaba: vector<int> sw; 5af29f0d04 2012-04-01 kinaba: for(int k=0; k<N; ++k) 5af29f0d04 2012-04-01 kinaba: if( switches[k][i]=='Y' ) 5af29f0d04 2012-04-01 kinaba: sw.push_back(k); 5af29f0d04 2012-04-01 kinaba: 5af29f0d04 2012-04-01 kinaba: if(initial[i] == 'Y') 5af29f0d04 2012-04-01 kinaba: if(sw.size() == 0) 5af29f0d04 2012-04-01 kinaba: { 5af29f0d04 2012-04-01 kinaba: return -1; 5af29f0d04 2012-04-01 kinaba: } 5af29f0d04 2012-04-01 kinaba: else if(sw.size() == 1) 5af29f0d04 2012-04-01 kinaba: { 5af29f0d04 2012-04-01 kinaba: uf.Union(POS(sw[0]), TR); 5af29f0d04 2012-04-01 kinaba: uf.Union(NEG(sw[0]), FL); 5af29f0d04 2012-04-01 kinaba: } 5af29f0d04 2012-04-01 kinaba: else 5af29f0d04 2012-04-01 kinaba: { 5af29f0d04 2012-04-01 kinaba: uf.Union(POS(sw[0]), NEG(sw[1])); 5af29f0d04 2012-04-01 kinaba: uf.Union(NEG(sw[0]), POS(sw[1])); 5af29f0d04 2012-04-01 kinaba: } 5af29f0d04 2012-04-01 kinaba: else 5af29f0d04 2012-04-01 kinaba: if(sw.size() == 0) 5af29f0d04 2012-04-01 kinaba: { 5af29f0d04 2012-04-01 kinaba: } 5af29f0d04 2012-04-01 kinaba: else if(sw.size() == 1) 5af29f0d04 2012-04-01 kinaba: { 5af29f0d04 2012-04-01 kinaba: uf.Union(POS(sw[0]), FL); 5af29f0d04 2012-04-01 kinaba: uf.Union(NEG(sw[0]), TR); 5af29f0d04 2012-04-01 kinaba: } 5af29f0d04 2012-04-01 kinaba: else 5af29f0d04 2012-04-01 kinaba: { 5af29f0d04 2012-04-01 kinaba: uf.Union(POS(sw[0]), POS(sw[1])); 5af29f0d04 2012-04-01 kinaba: uf.Union(NEG(sw[0]), NEG(sw[1])); 5af29f0d04 2012-04-01 kinaba: } 5af29f0d04 2012-04-01 kinaba: } 5af29f0d04 2012-04-01 kinaba: 5af29f0d04 2012-04-01 kinaba: if( uf.Find(TR) == uf.Find(FL) ) 5af29f0d04 2012-04-01 kinaba: return -1; 5af29f0d04 2012-04-01 kinaba: for(int k=0; k<N; ++k) 5af29f0d04 2012-04-01 kinaba: if( uf.Find(POS(k)) == uf.Find(NEG(k)) ) 5af29f0d04 2012-04-01 kinaba: return -1; 5af29f0d04 2012-04-01 kinaba: 5af29f0d04 2012-04-01 kinaba: int minSwitch = 0; 5af29f0d04 2012-04-01 kinaba: set<int> done; 5af29f0d04 2012-04-01 kinaba: for(int k=0; k<N; ++k) 5af29f0d04 2012-04-01 kinaba: if( !done.count(k) ) 5af29f0d04 2012-04-01 kinaba: { 5af29f0d04 2012-04-01 kinaba: vector<int> pos(1, k); 5af29f0d04 2012-04-01 kinaba: vector<int> neg; 5af29f0d04 2012-04-01 kinaba: for(int j=k+1; j<N; ++j) 5af29f0d04 2012-04-01 kinaba: if( !done.count(j) ) 5af29f0d04 2012-04-01 kinaba: if( uf.Find(POS(k)) == uf.Find(POS(j)) ) { 5af29f0d04 2012-04-01 kinaba: pos.push_back(j); 5af29f0d04 2012-04-01 kinaba: done.insert(j); 5af29f0d04 2012-04-01 kinaba: } else if( uf.Find(POS(k)) == uf.Find(NEG(j)) ) { 5af29f0d04 2012-04-01 kinaba: neg.push_back(j); 5af29f0d04 2012-04-01 kinaba: done.insert(j); 5af29f0d04 2012-04-01 kinaba: } 5af29f0d04 2012-04-01 kinaba: if( uf.Find(POS(k)) == uf.Find(TR) ) { 5af29f0d04 2012-04-01 kinaba: minSwitch += pos.size(); 5af29f0d04 2012-04-01 kinaba: } 5af29f0d04 2012-04-01 kinaba: else if( uf.Find(POS(k)) == uf.Find(FL) ) { 5af29f0d04 2012-04-01 kinaba: minSwitch += neg.size(); 5af29f0d04 2012-04-01 kinaba: } 5af29f0d04 2012-04-01 kinaba: else { 5af29f0d04 2012-04-01 kinaba: minSwitch += min(pos.size(), neg.size()); 5af29f0d04 2012-04-01 kinaba: } 5af29f0d04 2012-04-01 kinaba: } 5af29f0d04 2012-04-01 kinaba: return minSwitch; 5af29f0d04 2012-04-01 kinaba: } 5af29f0d04 2012-04-01 kinaba: }; 5af29f0d04 2012-04-01 kinaba: 5af29f0d04 2012-04-01 kinaba: // BEGIN CUT HERE 5af29f0d04 2012-04-01 kinaba: #include <ctime> 5af29f0d04 2012-04-01 kinaba: double start_time; string timer() 5af29f0d04 2012-04-01 kinaba: { ostringstream os; os << " (" << int((clock()-start_time)/CLOCKS_PER_SEC*1000) << " msec)"; return os.str(); } 5af29f0d04 2012-04-01 kinaba: template<typename T> ostream& operator<<(ostream& os, const vector<T>& v) 5af29f0d04 2012-04-01 kinaba: { os << "{ "; 5af29f0d04 2012-04-01 kinaba: for(typename vector<T>::const_iterator it=v.begin(); it!=v.end(); ++it) 5af29f0d04 2012-04-01 kinaba: os << '\"' << *it << '\"' << (it+1==v.end() ? "" : ", "); os << " }"; return os; } 5af29f0d04 2012-04-01 kinaba: void verify_case(const int& Expected, const int& Received) { 5af29f0d04 2012-04-01 kinaba: bool ok = (Expected == Received); 5af29f0d04 2012-04-01 kinaba: if(ok) cerr << "PASSED" << timer() << endl; else { cerr << "FAILED" << timer() << endl; 5af29f0d04 2012-04-01 kinaba: cerr << "\to: \"" << Expected << '\"' << endl << "\tx: \"" << Received << '\"' << endl; } } 5af29f0d04 2012-04-01 kinaba: #define CASE(N) {cerr << "Test Case #" << N << "..." << flush; start_time=clock(); 5af29f0d04 2012-04-01 kinaba: #define END verify_case(_, EllysLights().getMinimum(initial, switches));} 5af29f0d04 2012-04-01 kinaba: int main(){ 5af29f0d04 2012-04-01 kinaba: 5af29f0d04 2012-04-01 kinaba: CASE(0) 5af29f0d04 2012-04-01 kinaba: string initial = "YNYNNN"; 5af29f0d04 2012-04-01 kinaba: string switches_[] = {"YNNYNY", "NYYYNN", "YNYNYN", "NNNNYN", "NYNNNY"}; 5af29f0d04 2012-04-01 kinaba: vector <string> switches(switches_, switches_+sizeof(switches_)/sizeof(*switches_)); 5af29f0d04 2012-04-01 kinaba: int _ = 2; 5af29f0d04 2012-04-01 kinaba: END 5af29f0d04 2012-04-01 kinaba: CASE(1) 5af29f0d04 2012-04-01 kinaba: string initial = "YNYNYN"; 5af29f0d04 2012-04-01 kinaba: string switches_[] = {"NNNNNN", "YYYYYY", "NYNNNN", "NNNYNN", "NNNNNY"}; 5af29f0d04 2012-04-01 kinaba: vector <string> switches(switches_, switches_+sizeof(switches_)/sizeof(*switches_)); 5af29f0d04 2012-04-01 kinaba: int _ = 4; 5af29f0d04 2012-04-01 kinaba: END 5af29f0d04 2012-04-01 kinaba: CASE(2) 5af29f0d04 2012-04-01 kinaba: string initial = "YYN"; 5af29f0d04 2012-04-01 kinaba: string switches_[] = {"YNY", "NYN"}; 5af29f0d04 2012-04-01 kinaba: vector <string> switches(switches_, switches_+sizeof(switches_)/sizeof(*switches_)); 5af29f0d04 2012-04-01 kinaba: int _ = -1; 5af29f0d04 2012-04-01 kinaba: END 5af29f0d04 2012-04-01 kinaba: CASE(3) 5af29f0d04 2012-04-01 kinaba: string initial = "NNYNYNYYYNNYYYYN"; 5af29f0d04 2012-04-01 kinaba: string switches_[] = {"NYNYNYNYNYNYNYNY", 5af29f0d04 2012-04-01 kinaba: "YNYNYNYNYNYNYNYN", 5af29f0d04 2012-04-01 kinaba: "NNNNNNNNNNNNNNNN", 5af29f0d04 2012-04-01 kinaba: "YNNNNNNNNNNNNNNN", 5af29f0d04 2012-04-01 kinaba: "NYNNNNNNNNNNNNNN", 5af29f0d04 2012-04-01 kinaba: "NNYNNNNNNNNNNNNN", 5af29f0d04 2012-04-01 kinaba: "NNNYNNNNNNNNNNNN", 5af29f0d04 2012-04-01 kinaba: "NNNNYNNNNNNNNNNN", 5af29f0d04 2012-04-01 kinaba: "NNNNNYNNNNNNNNNN", 5af29f0d04 2012-04-01 kinaba: "NNNNNNYNNNNNNNNN", 5af29f0d04 2012-04-01 kinaba: "NNNNNNNYNNNNNNNN", 5af29f0d04 2012-04-01 kinaba: "NNNNNNNNYNNNNNNN", 5af29f0d04 2012-04-01 kinaba: "NNNNNNNNNYNNNNNN", 5af29f0d04 2012-04-01 kinaba: "NNNNNNNNNNYNNNNN", 5af29f0d04 2012-04-01 kinaba: "NNNNNNNNNNNYNNNN", 5af29f0d04 2012-04-01 kinaba: "NNNNNNNNNNNNYNNN", 5af29f0d04 2012-04-01 kinaba: "NNNNNNNNNNNNNYNN", 5af29f0d04 2012-04-01 kinaba: "NNNNNNNNNNNNNNYN", 5af29f0d04 2012-04-01 kinaba: "NNNNNNNNNNNNNNNY"}; 5af29f0d04 2012-04-01 kinaba: vector <string> switches(switches_, switches_+sizeof(switches_)/sizeof(*switches_)); 5af29f0d04 2012-04-01 kinaba: int _ = 6; 5af29f0d04 2012-04-01 kinaba: END 5af29f0d04 2012-04-01 kinaba: CASE(4) 5af29f0d04 2012-04-01 kinaba: string initial = "NYNYNYYYNNYYYNNYNNYYYYYNNYNYYYY"; 5af29f0d04 2012-04-01 kinaba: string switches_[] = {"NNNNNNNNNNNNNNNNNNYNNNNNNNNNNNN", 5af29f0d04 2012-04-01 kinaba: "NNNNNNNNYNNNYNNNNYYNYNNNNYNNNNN", 5af29f0d04 2012-04-01 kinaba: "NNNNNNNNNYNNNNNNNNNNNNYNNNNNNNN", 5af29f0d04 2012-04-01 kinaba: "NNNNNYNNNNNNNNNNNNNNNNNNNNNNNNN", 5af29f0d04 2012-04-01 kinaba: "NYNNNNNNNNNNNNYNNNNNNNNNNNNNNNN", 5af29f0d04 2012-04-01 kinaba: "NNNNNNNNNNNNNYYNNNNNNNNNNNNNNNY", 5af29f0d04 2012-04-01 kinaba: "NNNNNNYNNNNNNNNNNNNYNNNNNYNNNNN", 5af29f0d04 2012-04-01 kinaba: "NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN", 5af29f0d04 2012-04-01 kinaba: "YNNNNNNNNNNNNNNNNNNYNNNNNNNNNNN", 5af29f0d04 2012-04-01 kinaba: "NNNYNNNNNNNNNNNNNNNNNNNYYNNNNNN", 5af29f0d04 2012-04-01 kinaba: "NYNNNNNNNNNNYNNNNNNNNNNNNNNNYNN", 5af29f0d04 2012-04-01 kinaba: "NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN", 5af29f0d04 2012-04-01 kinaba: "NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN", 5af29f0d04 2012-04-01 kinaba: "NNNNNYNNNNNNNNNNNNNNNNNNNNNNNNY", 5af29f0d04 2012-04-01 kinaba: "NNNNNNNNNNYNNNNNNNNNYYYNNNNNNNN", 5af29f0d04 2012-04-01 kinaba: "NNNYNNNNNNNNNNNNNNNNNNNNNNNYNNN", 5af29f0d04 2012-04-01 kinaba: "NNNNNNNNYNNNNNNNNNNNNNNNYNNNNNN", 5af29f0d04 2012-04-01 kinaba: "YNNNYNNNNNNNNNNNNNNNNNNNNNNYNNN", 5af29f0d04 2012-04-01 kinaba: "NNNNNNNNNNYNNNNNNNNNNNNNNNNNNNN", 5af29f0d04 2012-04-01 kinaba: "NNNNYNNYNNNNNNNNNNNNNNNNNNNNNNN", 5af29f0d04 2012-04-01 kinaba: "NNNNNNNYNNNYNNNYNNNNNNNNNNNNNYN"}; 5af29f0d04 2012-04-01 kinaba: vector <string> switches(switches_, switches_+sizeof(switches_)/sizeof(*switches_)); 5af29f0d04 2012-04-01 kinaba: int _ = 7; 5af29f0d04 2012-04-01 kinaba: END 5af29f0d04 2012-04-01 kinaba: CASE(5) 5af29f0d04 2012-04-01 kinaba: string initial = "NYNYYNYNYYYYNNYNYNNYYNNNNNYNYNNNNNYNNNYN"; 5af29f0d04 2012-04-01 kinaba: string switches_[] = {"NNNNNNNNNNNNNNNNNNNYNNNNNNNNNNNNNNNYNNNN", 5af29f0d04 2012-04-01 kinaba: "NNNNNNNNNNNNNNNNNNNNNNNNNNYNNNNNNNNNNNNN", 5af29f0d04 2012-04-01 kinaba: "NNNNNNNNNYNNNNYNNYNNNNNNNNNNNNNNNNNNNNNN", 5af29f0d04 2012-04-01 kinaba: "NNNNNNNNNNNNNNNNNNNYNNNNYNNNNNNNYNNNNNNN", 5af29f0d04 2012-04-01 kinaba: "NNNNNYNNNNNNNNNNNNNNNNNYNNNNNNNNNNNNNNNN", 5af29f0d04 2012-04-01 kinaba: "NNNNNNNNNNNNNNNNNNYNNNNNNNNYNNNYNNNNNYNN", 5af29f0d04 2012-04-01 kinaba: "NNNNNNNNNNYNNNNNNNNNNNNNNYNNNNNYNNYNNNNN", 5af29f0d04 2012-04-01 kinaba: "NNNNNYNNYNNYNNNNNNNNNNNNNNNNNNNNNYNNNNNN", 5af29f0d04 2012-04-01 kinaba: "YNNNYNNNNNNNNNNNNNYNNNYNNYNNNNNNNYNNNNNN", 5af29f0d04 2012-04-01 kinaba: "NNNNNNNNNYYNNNNNNNNNNNNYNNNNYNNNNNNNNNNN", 5af29f0d04 2012-04-01 kinaba: "NNNNNNNNNNNYNYNNNNNNNNNNNNNNNNNNNNNNNNNY", 5af29f0d04 2012-04-01 kinaba: "NNNNNNNNNNNNYNNNNNNNNNNNYNNNNNNNNNNNNNNN", 5af29f0d04 2012-04-01 kinaba: "NNNNNNNNNNNNNNNNNNNNNNYNNNNNNNNNNNNNNNNN", 5af29f0d04 2012-04-01 kinaba: "NNNYNNNNNNNNNNNNNNNNNYNNNNNNNNNNYNNNNNNN", 5af29f0d04 2012-04-01 kinaba: "NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN", 5af29f0d04 2012-04-01 kinaba: "NNNNNNNNNNNNNNYNNYNNNNNNNNNNNNNNNNNNNNNN", 5af29f0d04 2012-04-01 kinaba: "NNYNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNYYNNY", 5af29f0d04 2012-04-01 kinaba: "NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNYNNNNNNNNN", 5af29f0d04 2012-04-01 kinaba: "NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN", 5af29f0d04 2012-04-01 kinaba: "NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN", 5af29f0d04 2012-04-01 kinaba: "NNNNNNNYNNNNNYNYNNNNNNNNNNNNNNNNNNNNNNNN", 5af29f0d04 2012-04-01 kinaba: "NNYNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNYNNNNN", 5af29f0d04 2012-04-01 kinaba: "NYNNNNNNNNNNNNNNNNNNNNNNNNNNNYNNNNNNNNNN", 5af29f0d04 2012-04-01 kinaba: "NNNNYNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN", 5af29f0d04 2012-04-01 kinaba: "NYNNNNYNNNNNNNNNNNNNNNNNNNNYNNNNNNNNNNNN", 5af29f0d04 2012-04-01 kinaba: "NNNNNNYNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNYNN", 5af29f0d04 2012-04-01 kinaba: "NNNNNNNNNNNNYNNYYNNNNNNNNNNNNNNNNNNNNNNN", 5af29f0d04 2012-04-01 kinaba: "NNNNNNNYNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN", 5af29f0d04 2012-04-01 kinaba: "NNNYNNNNNNNNNNNNNNNNYYNNNNNNNNNNNNNNNNNN", 5af29f0d04 2012-04-01 kinaba: "NNNNNNNNYNNNNNNNNNNNNNNNNNNNYNYNNNNNNNNN", 5af29f0d04 2012-04-01 kinaba: "NNNNNNNNNNNNNNNNNNNNNNNNNNYNNYNNNNNNYNNN"}; 5af29f0d04 2012-04-01 kinaba: vector <string> switches(switches_, switches_+sizeof(switches_)/sizeof(*switches_)); 5af29f0d04 2012-04-01 kinaba: int _ = -1; 5af29f0d04 2012-04-01 kinaba: END 5af29f0d04 2012-04-01 kinaba: /* 5af29f0d04 2012-04-01 kinaba: CASE(6) 5af29f0d04 2012-04-01 kinaba: string initial = ; 5af29f0d04 2012-04-01 kinaba: string switches_[] = ; 5af29f0d04 2012-04-01 kinaba: vector <string> switches(switches_, switches_+sizeof(switches_)/sizeof(*switches_)); 5af29f0d04 2012-04-01 kinaba: int _ = ; 5af29f0d04 2012-04-01 kinaba: END 5af29f0d04 2012-04-01 kinaba: CASE(7) 5af29f0d04 2012-04-01 kinaba: string initial = ; 5af29f0d04 2012-04-01 kinaba: string switches_[] = ; 5af29f0d04 2012-04-01 kinaba: vector <string> switches(switches_, switches_+sizeof(switches_)/sizeof(*switches_)); 5af29f0d04 2012-04-01 kinaba: int _ = ; 5af29f0d04 2012-04-01 kinaba: END 5af29f0d04 2012-04-01 kinaba: */ 5af29f0d04 2012-04-01 kinaba: } 5af29f0d04 2012-04-01 kinaba: // END CUT HERE