题解 1989: 奇数个数

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

筛选

奇数个数简单利用字符串

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char str[100],i,count=0; gets(str); fo……

1989: 奇数个数

摘要:用字符串保存起来遍历。#include <bits/stdc++.h> using namespace std; int main(){     string s;     cin >> ……

C语言代码,简单易懂

摘要:解题思路:一个穷举法注意事项:因为是字符串,注意要有数字要有单引号。参考代码:#include<stdio.h>#include<string.h>#include<stdlib.h>int main……

1989: 奇数个数

摘要:解题思路:入门题一般定义一个长数组即可。比较字符数字-‘0’的ASCII码值注意事项:参考代码:#include <stdio.h> int main(){ char str[1000]; ……

奇数个数-题解(Java代码)

摘要:解题思路:注意事项:参考代码:Scanner sc = new Scanner(System.in); String s = sc.nextLine(); int count=0; for (i……

奇数个数-题解(C语言代码)

摘要:解题思路:注意事项:注意c初值为0;参考代码:#include <stdio.h>#include <string.h> int main(){    char a[100];    int i,b,……