奇数个数-题解(Java代码) 摘要:解题思路:注意事项:参考代码:Scanner sc = new Scanner(System.in); String s = sc.nextLine(); int count=0; for (i…… 题解列表 2021年01月27日 0 点赞 0 评论 244 浏览 评分:0.0
奇数个数-简简单单,一个while循环搞定 摘要:解题思路:注意事项:参考代码:#include<stdio.h>intmain(){ intn,a=0; scanf("%d",…… 题解列表 2025年02月22日 0 点赞 0 评论 148 浏览 评分:0.0
1989题解方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ char a[1000]; int i,sum=0; gets(a); for(i=0;a[i]!='\…… 题解列表 2024年11月22日 0 点赞 0 评论 116 浏览 评分:0.0
奇数个数(C++) 摘要:```c++ #include #include #include #include #include #include using namespace std; int …… 题解列表 2023年08月23日 0 点赞 0 评论 211 浏览 评分:0.0
计算奇数个数 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ string s; int t,cnt=0; …… 题解列表 2023年05月11日 0 点赞 0 评论 122 浏览 评分:0.0
将多位数拆解为单位数,善用整除和求余 摘要:解题思路:注意事项:参考代码:n=input()u=0##for _ in n:## print('_:',_)## if int(_)%2!=0:## u=u…… 题解列表 2022年10月24日 0 点赞 0 评论 152 浏览 评分:0.0
1989: 奇数个数我看很多大佬都使用了数组长度函数strlen,我写个不使用的 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(void){ int i; char c[100]={}; int ans=0; gets(c); for(i=0;c…… 题解列表 2022年07月19日 0 点赞 0 评论 128 浏览 评分:0.0
奇数个数简单利用字符串 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char str[100],i,count=0; gets(str); fo…… 题解列表 2022年07月19日 0 点赞 0 评论 174 浏览 评分:0.0
1989: 奇数个数 摘要:用字符串保存起来遍历。#include <bits/stdc++.h> using namespace std; int main(){ string s; cin >> …… 题解列表 2022年02月27日 0 点赞 0 评论 151 浏览 评分:0.0
C语言代码,简单易懂 摘要:解题思路:一个穷举法注意事项:因为是字符串,注意要有数字要有单引号。参考代码:#include<stdio.h>#include<string.h>#include<stdlib.h>int main…… 题解列表 2022年02月20日 0 点赞 0 评论 288 浏览 评分:0.0