提交时间:2025-12-26 15:47:30
运行 ID: 78469
#include <iostream> using namespace std; bool isSevenRelated(int num) { if (num % 7 == 0) return true; while (num > 0) { if (num % 10 == 7) return true; num /= 10; } return false; } int main() { int num; cin >> num; if (isSevenRelated(num)) cout << "yes"; else cout << "no"; return 0; }