Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
345041 王铖渝 【C2-8】报数游戏 C++ 通过 100 3 MS 240 KB 228 2025-08-29 11:45:14

Tests(1/1):


#include<bits/stdc++.h> using namespace std; int main(){ int n,ge,shi; cin>>n; for(int i=1;i<=n;i++){ ge=i%10; shi=i/10%10; if((ge==7||shi==7)||(i%7==0&&ge!=2)) continue; cout<<i<<endl; } return 0; }


测评信息: