题解 1859: 与2无关的数

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

题解 1859: 与2无关的数

解题思路:注意事项:参考代码:#include#include#includeintmain(){intn,sum=0,i;scanf("%d",&n);for(i=0;i<=n;i++){if(i%2!=0&&i%10!=2&&i/10%10!=

注意题目要求

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    int a,b,c=0,d=0,e=0,f=0,sum=0;    scanf("%d",&a);    ……

与2无关的数

参考代码:```c#includeintm(inta){while(a){intb=a%10;if(b==2){return0;}a=a/10;}return1;}intmain(){intn;scanf("%d",&n);intsum=0;for(inti=1;i

1859: 与2无关的数

摘要:解题思路:注意事项:参考代码:#include<iostream> #include<bits/stdc++.h> using namespace std; bool func(int i); ……

与2无关的数

摘要:解题思路:注意事项:n的取值范围为1000以内参考代码:#include<iostream>using namespace std;int main(){    int n,sum=0;    cin……

与2无关的数——python

摘要:解题思路:注意事项:参考代码:def bxg(n):    if &#39;2&#39; in str(n) or n%2 == 0:        return 0    else:        ……

与2无关的数

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    int n,i,sum = 0;    scanf("%d",&n);    if(n%2==0)    ……

与2无关的数 -题解(C语言代码)

摘要:解题思路:注意事项:题目的要求为不管是个位、十位、百位上的数字都不能为2                还有 i 要从1开始而不是0 参考代码:#include <stdio.h> int main……