Hello, World!(C语言入门) 摘要:解题思路:使用printf函数,将Hello, World输入进去即可。注意事项:1.使用英文标点符号2.逗号后面有一个空格参考代码:#include<stdio.h>int main(){ p…… 题解列表 2023年01月11日 0 点赞 1 评论 1551 浏览 评分:8.7
简单算数表达式求值(switch做法,C语言) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>int main(){ int num1,num2; char ch; scanf…… 题解列表 2023年02月01日 0 点赞 1 评论 743 浏览 评分:8.7
两个for 循环搞定 摘要:解题思路:用string.h函数,变量len 来进行字符串长度的统计,确定for 语句中的范围利用变量i和变量进行循环嵌套,外循环来进行判断每个数是否在数组中有与之相同 的数如有相同数则用sum来进行…… 题解列表 2023年02月07日 0 点赞 1 评论 845 浏览 评分:8.7
1035: [编程入门]自定义函数之字符类型统计 摘要:```cpp #include #include #include using namespace std; /* 题目描述 编写一函数,由实参传来一个字符串,统计此字符串中字母、数…… 题解列表 2023年02月20日 0 点赞 1 评论 209 浏览 评分:8.7
数组插入处理 JAVA list集合 摘要:解题思路:单纯数组无法进行动态插入,建立两个数组来进行题解有点繁琐,采取List集合注意事项:参考代码:package CSiteExercise; import java.util.Array…… 题解列表 2023年03月14日 0 点赞 0 评论 345 浏览 评分:8.7
蓝桥杯2022年第十三届决赛真题-卡牌(二分答案) 摘要:解题思路: 直接二分,注意cheak函数的写法。 ```cpp bool cheak(int x) { ll ans = 0; for (int i = 1; i > n >> m; …… 题解列表 2023年03月18日 0 点赞 1 评论 1768 浏览 评分:8.7
循环控制--5.最高的分数 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int n,max=0,a; scanf("%d",&n); for(int i=0;i<n…… 题解列表 2023年03月24日 0 点赞 0 评论 392 浏览 评分:8.7
无脑暴力搜索,因为数据范围很小 摘要:解题思路:直接深搜,每个结点最多两个子结点(要么加要么减,不可能既加又减),最多18层,所以最多有1+2+4+8+....+2^18=2^19-1<一百万个结点,这么小的数据范围,直接暴力搜索就行。D…… 题解列表 2023年03月31日 0 点赞 0 评论 789 浏览 评分:8.7
使用stl的双向链表+数组 摘要:```cpp #include using namespace std; #define pr pair #define ll long long const int N = 5e5 + 5…… 题解列表 2023年04月10日 0 点赞 0 评论 819 浏览 评分:8.7
1290: 奶牛的锻炼 摘要:```cpp #include #include using namespace std; const int N=10500,M=550; int dp[N][M],d[N],n,m; …… 题解列表 2023年04月15日 0 点赞 0 评论 580 浏览 评分:8.7