2002: 计算数字个数 摘要:#include<bits/stdc++.h> using namespace std; int main(){ string s; getline(cin,s); …… 题解列表 2021年12月26日 0 点赞 0 评论 374 浏览 评分:0.0
1749: 字符排序 摘要:#include<bits/stdc++.h> using namespace std; int main(){ int n; cin >> n; getchar…… 题解列表 2021年12月26日 0 点赞 0 评论 482 浏览 评分:0.0
2004: 统计成绩 摘要:#include<bits/stdc++.h> using namespace std; int main(){ double sum(0); int x,fail(0);…… 题解列表 2021年12月26日 0 点赞 0 评论 362 浏览 评分:0.0
1434: 蓝桥杯历届试题-回文数字 摘要:从 10000 直接循环到 999999,先判断各位数字和是不是与所给数相等,不相等直接判断下一个数,如果相等用 equal 函数判断是否是回文数。#include <bits/stdc++.h> …… 题解列表 2021年12月26日 0 点赞 0 评论 418 浏览 评分:0.0
不容易系列 摘要:```c #include int hanshu(int k);//函数声明 int hanshu (int k)//函数定义 { int n=0,i;//n 为第K站的绵羊的数量 …… 题解列表 2021年12月26日 0 点赞 0 评论 442 浏览 评分:0.0
[编程入门]水仙花数判断 摘要:解题思路:思考百位、十位、个位怎么表示注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c,s,m=100; while(m<1000) { a=m/1…… 题解列表 2021年12月26日 0 点赞 0 评论 307 浏览 评分:0.0
ArrayList迭代remove()与 ,关于For input string“”错误解决小方法 摘要:个人思路:创建一个数组存储多个数,再赋值到ArrayList迭代remove()注意事项:“.trim()”解决For input string“”错误(要转换的字符串前后含有空格,所以Integer…… 题解列表 2021年12月26日 0 点赞 0 评论 461 浏览 评分:0.0
自定义函数之字符串连接 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>void my_strcat(char *pa,char *pb,int len) //定义我…… 题解列表 2021年12月27日 0 点赞 0 评论 414 浏览 评分:0.0
C++代码确定插入数字的索引 摘要:解题思路:确定插入数字的索引然后分段输出即可如何确定插入数字的索引:遍历数组中已排序好的数字如果插入的数字大于当前遍历的数字,插入数字放置到当前遍历的数字的后一位否则遍历终止注意事项:暂时不明参考代码…… 题解列表 2021年12月27日 0 点赞 0 评论 351 浏览 评分:0.0
1204: 大小写转换 摘要:#include<bits/stdc++.h> using namespace std; int main(){ string s; while(getline(cin,s…… 题解列表 2021年12月27日 0 点赞 0 评论 410 浏览 评分:0.0