7的倍数: #include <iostream> #include <vector> #include <cstring> using namespace std; const int N = 100010; int V[N]; int f[N][7]; int main() { int n = 0; while(cin>>V[n++],V[n-1]); memset(f,-1,sizeof f); f[0][0] = 0; for(int i = 0;i < n;i ++){ ...