摘要:
/* ID:chenjiong PROG:lamps LANG:C++*/#include <stdio.h>#include <string.h>#include <algorithm>using namespace std;int N;int lamp[7] = {1,1,1,1,1,1,1};int C;int cnt_on;int on[7];int cnt_off;int off[7];bool vis[7];typedef struct { int lamp[7]; int val;}S;int cnt;S ans[16];int w[7] = 阅读全文