Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
442854 阮予正 【C2-3】禁止用7 C++ 解答错误 33 1 MS 248 KB 278 2026-05-30 16:19:41

Tests(1/3):


#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){ cnt++; } } cout<<cnt<<endl; if(cnt==0){ cout<<"yes"; }else{ cout<<"no"; } return 0; }


测评信息: