被7整除,用了一种略暴力的方法,但是只是A了70%; #include <iostream> using namespace std; bool judge(long long a, long long b,long long ten) { long long ret = a % 7; long long sum = ret*ten + b; bool sta = false; if (sum % 7 == 0) sta = true; return sta; } int main() { int length, n; while (cin >>...