蓝桥杯算法训练VIP-数的统计 C++ map 摘要:# map 有序容器 ```c++ #include #include #include #include using namespace std; const int N = 1e5+…… 题解列表 2023年07月30日 0 点赞 0 评论 400 浏览 评分:0.0
报数问题(数组表示链表) 摘要:#include<iostream> #include<string> using namespace std; const int N=300; string s; //…… 题解列表 2023年07月30日 0 点赞 0 评论 280 浏览 评分:9.9
计算素数和 摘要:解题思路:很简单按照题目要求即可注意事项:如果用暴力要特判1参考代码:#include<iostream> using namespace std; int m,n; int sum=0; b…… 题解列表 2023年07月30日 0 点赞 0 评论 257 浏览 评分:9.9
c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h> typedef struct num{ int real; int imag; …… 题解列表 2023年07月30日 0 点赞 0 评论 308 浏览 评分:0.0
1113: C语言考试练习题_保留字母 摘要:##题目1113: C语言考试练习题_保留字母 **解题思路:输入一个字符串,一个个判断是否为字母,如果符合条件就输出** ```cpp #include using namespace st…… 题解列表 2023年07月30日 0 点赞 0 评论 290 浏览 评分:0.0
优质题解 去掉空格(C语言 精简!) 摘要:解题思路: 利用gets()返回值(非0为真)作为while循环条件解决多行输出问题利用指针变量p对字符串进行遍历,到\0停止遍历注意事项: *++p!='\0' 是先执行++…… 题解列表 2023年07月30日 0 点赞 3 评论 1753 浏览 评分:8.3
与7无关的数 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int n,t=0,s=0; scanf("%d",&n); for(int i=1;i<=…… 题解列表 2023年07月30日 0 点赞 2 评论 621 浏览 评分:9.9
c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>typedef struct student{ int id; int score; …… 题解列表 2023年07月30日 0 点赞 0 评论 412 浏览 评分:0.0
画矩形(思路简单) 摘要:解题思路:注意事项:根据条件写代码参考代码:#include <stdio.h>int main(){ int x,y,c,n; scanf("%d %d %c %d",&x,&y,&c,…… 题解列表 2023年07月31日 0 点赞 0 评论 427 浏览 评分:9.9
信息学奥赛一本通T1239-统计数字 C++ STL 实现 摘要:# STL map `key`-> `value` ```c++ #include #include #include using namespace std; int main() …… 题解列表 2023年07月31日 0 点赞 0 评论 824 浏览 评分:6.0