| Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|---|
| 442853 | 阮予正 | 【C2-3】禁止用7 | C++ | 解答错误 | 0 | 2 MS | 240 KB | 272 | 2026-05-30 16:18:08 |
#include<iostream> using namespace std; int main(){ int n,w; cin>>n; int cnt=0; while(n>0){ w=n%10; n=n/10; if(w%7==0){ cnt++; } } cout<<cnt<<endl; if(cnt==0){ cout<<"yes"; }else{ cout<<"no"; } return 0; }