Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
8028 余立涵 所有不包含7的数 C++ Wrong Answer 1 MS 252 KB 264 2025-06-07 09:32:04

Tests(1/4):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int a,b=0,c=7; cin>>a; while(a--){ b++; if(b==c){ b++; a--; c=c+10; } cout<<b<<endl; } return 0; }


Run Info:

------Input------
80
------Answer-----
1 2 3 4 5 6 8 9 10 11 12 13 14 15 16 18 19 20 21 22 23 24 25 26 28 29 30 31 32 33 34 35 36 38 39 40 41 42 43 44 45 46 48 49 50 51 52 53 54 55 56 58 59 60 61 62 63 64 65 66 68 69 80
------Your output-----
1 2 3 4 5 6 8 9 10 11 12 13 14 15 16 18 19 20 21 22 23 24 25 26 28 29 30 31 32 33 34 35 36 38 39 40 41 42 43 44 45 46 48 49 50 51 52 53 54 55 56 58 59 60 61 62 63 64 65 66 68 69 70 71 72 73 74 75 76 78 79 80