Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
78469 sh25_wangtaojie 与7相关的数 C++ 通过 0 MS 244 KB 358 2025-12-26 15:47:30

Tests(1/1):


#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; }


测评信息: