Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
442890 顾鑫辰 【C2-3】禁止用7 C++ 通过 100 2 MS 240 KB 286 2026-05-30 18:59:32

Tests(3/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 && w!=0){ cnt++; } } cout<<cnt<<endl; if(cnt==0){ cout<<"yes"; }else{ cout<<"no"; } return 0; }


测评信息: