Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
114105 翁思宸 所有不包含7的数 C++ Wrong Answer 1 MS 272 KB 406 2025-03-21 18:28:27

Tests(2/4):


Code:

#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int n,s,a,b; cin>>n; for(int i=1;i<=n;i++){ if(i%10!=7 && i%10/10!=7){ cout<<i<<" "; } } return 0; }


Run Info:

------Input------
100
------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 81 82 83 84 85 86 88 89 90 91 92 93 94 95 96 98 99 100
------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 81 82 83 84 85 86 88 89 90 91 92 93 94 95 96 98 99 100