Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
83612 sh25_huangse 与7相关的数 C++ 通过 0 MS 248 KB 327 2026-01-28 20:31:05

Tests(1/1):


#include <bits/stdc++.h> using namespace std; const string y="yes"; int main() { short n; cin>>n; while(n!=0){ if(n%10==7){ cout<<y; return 0; } n=n/10; } if(n%7==0){ cout<<y; return 0; } cout<<"no"; return 0; }


测评信息: