c++,cin.get()解法 摘要:解题思路:cin.get()读到行的最后一个,但是不读入回车,因此,通过读到null终止循环。注意事项:参考代码:#include<iostream>#include<string>using nam…… 题解列表 2021年07月31日 0 点赞 0 评论 494 浏览 评分:0.0
1012: [编程入门]字符串分类统计 摘要:#include<stdio.h>int main(){ char I[100]; int x=0,y=0,m=0,n=0; int i=0,j; scanf("%c",&I[0]); while(I…… 题解列表 2021年08月17日 0 点赞 0 评论 340 浏览 评分:9.9
字符串分类统计另一种方法 摘要:解题思路:注意事项:参考代码:int count1=0,count2=0,count3=0,count4=0; int i; char str[200]; gets(str); for(i=0;str…… 题解列表 2021年08月23日 0 点赞 0 评论 198 浏览 评分:0.0
[编程入门]字符串分类统计 摘要:解题思路:注意事项:注意:字母分为大小写。所以有两个范围。参考代码:#include<stdio.h> int main() { int a=0,b=0,c=0,d=0,ch; …… 题解列表 2021年09月07日 0 点赞 0 评论 203 浏览 评分:0.0
字符串分类统计-题解(Java)__数组和变量的简单极限测试 摘要:解题思考: 如果一个题,可以用变量,可以用数组,怎么选?之前我总觉得差不多吧。所以就针对这个题做了个简单的极限测试,跑个几百万的for循环吧。当然了,测试结果仅代表我自己的电脑的实际情况。图…… 题解列表 2021年10月07日 0 点赞 0 评论 561 浏览 评分:9.9
[编程入门]字符串分类统计,正则4行代码解题思路 摘要:解题思路:利用正则进行匹配注意事项:其他符号由于不好匹配,可采用整个字符串长度减去已知进行求算参考代码:import re strings = input() m, n, p = (len(re.…… 题解列表 2021年10月13日 0 点赞 0 评论 666 浏览 评分:6.0
编写题解 1012: [编程入门]字符串分类统计 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ char a[200]; int i; int c=0,v=0,b=0,n=0; for(i=0;i<=20…… 题解列表 2021年10月22日 0 点赞 0 评论 477 浏览 评分:9.9
字符串分类统计基础解法 摘要:解题思路:先输入字符串,然后统计英文字母、数字、空格、剩下的就是其他字符了。注意事项:注意字符要用单引号。要用与字符串有关的#include<stdio.h>.字符串最后有'\0',判…… 题解列表 2021年11月02日 0 点赞 0 评论 568 浏览 评分:9.9
1012 又学到了不少 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <ctype.h>int main(){ int i=0,j=0,x=0,y=0,c; …… 题解列表 2021年11月07日 0 点赞 0 评论 199 浏览 评分:9.9
编程入门]字符串分类统计 摘要:解题思路:#include <stdio.h>#include <ctype.h>int main(){ int letter = 0,number = 0,blank = 0,others =…… 题解列表 2021年11月10日 0 点赞 0 评论 377 浏览 评分:0.0