| Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|---|
| 442856 | 阮予正 | 【C2-3】禁止用7 | C++ | 通过 | 100 | 3 MS | 248 KB | 286 | 2026-05-30 16:23:17 |
#include<iostream> using namespace std; int main(){ long long n,w; cin>>n; int cnt=0; while(n>0){ w=n%10; n=n/10; if(w%7==0 && w!=0){ cnt++; } } cout<<cnt<<endl; if(cnt==0){ cout<<"yes"; }else{ cout<<"no"; } return 0; }