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

Tests(0/3):


#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; }


测评信息: