| Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 83872 | sh25_zhoumy | 与7相关的数 | C++ | 通过 | 0 MS | 252 KB | 300 | 2026-02-03 12:12:35 |
#include<bits/stdc++.h> using namespace std; bool y7wg(int a){ if(a%7==0) return false; while(a){ if(a%10==7) return false; a=a/10; } return true; } int main() { int n; cin>>n; if(!y7wg(n)) cout<<"yes"; else cout<<"no"; return 0; }