[编程入门]字符串分类统计-题解(C语言代码),值得一看 ```c#include#include#defineidx(ch)(isalpha(ch)?0:isdigit(ch)?1:(ch=='\x20')?2:3)intcnt[4];intmain(void){intch;while((ch=getchar())!='\n'){cnt[idx(ch)]+ 题解列表 2019年11月22日 0 点赞 0 评论 2125 浏览 评分:9.9
[编程入门]成绩评定-题解(C语言代码),另类解法 摘要:又遇到这道题目,突然冒出来个想法,用整数除法。 ```c #include int main(void){ const char *grade = "EDCBAA"; …… 题解列表 2019年11月22日 0 点赞 2 评论 1666 浏览 评分:9.2
[编程入门]三个数字的排序-题解(C语言代码) 三个判断!! 摘要:```c #include int main() { int a,b,c; scanf("%d %d %d",&a,&b,&c); if(a…… 题解列表 2019年11月21日 0 点赞 0 评论 2055 浏览 评分:0.0
虚张声势-题解(C语言代码) 用两个数组分别统计两行输入中各个字符的数量。```c#include#include#defineN100005charline1[N],line2[N];//统计字符串s中各个字符的数量staticinlinevoidcount(int*c, 题解列表 2019年11月21日 0 点赞 0 评论 2222 浏览 评分:9.9
[编程入门]带参数宏定义练习-题解(Python代码) python ```pythona,b=input().split()#输入数据emmmmmmmma,b=b,a#交换数据emmmmmmmmprint(a,b)#输出数据emmmmmmmm``` 题解列表 2019年11月21日 0 点赞 3 评论 2198 浏览 评分:6.5
[编程入门]自定义函数之字符类型统计-题解(Python代码) python 摘要:```python a=b=c=d=0 #定义 str = input()#输入 for i in str: #遍历判断 if i>='a'and i='A' and i='0' …… 题解列表 2019年11月21日 0 点赞 0 评论 1818 浏览 评分:0.0
[编程入门]自定义函数之数字分离-题解(Python代码) python 摘要:```python a = input() #输入 for i in a: #遍历 print(i,end=" ") #格式化输出 当输出字符后以空格结尾(end=" ") ``…… 题解列表 2019年11月21日 0 点赞 2 评论 1188 浏览 评分:9.9
[编程入门]密码破译-题解(C语言代码) 摘要:#include"stdio.h" int main() { int i; char str[5]; scanf("%s",str); for(i=0;i…… 题解列表 2019年11月21日 0 点赞 1 评论 1870 浏览 评分:8.0
The 3n + 1 problem -题解(C语言代码) 首先,因为这个题目是英文的,所以容我多说几句关于题目的讲解~这道题的意思就是输入两个数[i,j],区间内的每个数字,都要进行一系列运算:如果这个数字是偶数,则除以2,如果这个数字是奇数,则乘以3在加1,直到这个数最终被除为1。这些经过运算产生的数, 题解列表 2019年11月21日 0 点赞 1 评论 1148 浏览 评分:9.5
蓝桥杯算法提高VIP-进制转换-题解(C语言代码) 摘要: #include int main() { int s; scanf("%x",&s); printf("%X %d %o",s,…… 题解列表 2019年11月21日 0 点赞 0 评论 1061 浏览 评分:0.0