最低通行费 (数字三角形模型dp) 摘要: 二选一:我也不知道为什么限制为什么不同。 方法一: #include using namespace std; const int N=110; i…… 题解列表 2024年11月11日 0 点赞 0 评论 393 浏览 评分:9.9
看不懂直接喷我 摘要:解题思路:注意事项: 看我评论!!!!!参考代码: #include #include int main() { int i; char a[300]; gets (a); int num=strle…… 题解列表 2024年11月11日 0 点赞 1 评论 476 浏览 评分:9.9
简单易懂while循环就可以完成 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ long int a,n,Tom; while(scanf("%ld",&n)!=EOF) { …… 题解列表 2024年11月11日 0 点赞 0 评论 475 浏览 评分:9.9
[编程入门]结构体之成绩统计2 摘要:```c #include struct a { char a[30]; char b[30]; //结构体 int c; int d; int e; }…… 题解列表 2024年11月12日 1 点赞 0 评论 591 浏览 评分:9.9
字符串最大跨距(指针方法) 摘要:解题思路:使用strstr函数反复查找寻找到字符串最后出现的位置,最后利用指针相减的特性求出跨距。注意事项:注意录入数据时的格式;注意strstr查找不到字符串时会返回空指针(NULL);重复查找时注…… 题解列表 2024年11月12日 0 点赞 0 评论 395 浏览 评分:9.9
试了下另一个选项 摘要:解题思路:题目也说了,但好奇试了下,输出no,不行。注意事项:参考代码:#include<studio.h>int main(){ printf("yes"); return…… 题解列表 2024年11月12日 0 点赞 0 评论 253 浏览 评分:9.9
屎盆子镶金边教程!!!!! 摘要:#include <stdio.h>#include <string.h>int main() { char part1[] = "Hello "; // 前一段字母,注意这里有个空格 …… 题解列表 2024年11月12日 0 点赞 1 评论 238 浏览 评分:9.9
1207: 字符排列问题(排列组合的思想,合理利用全排列) 摘要:对于该题,通过排列组合的方法简单易懂注意:对于n个数的全排列的最多种类即为n!(n的阶乘)因为给出的数据有重复的字母,而重复的字母会对全排列的种类有影响思路: 以本题所给数据为例:输入四个字…… 题解列表 2024年11月12日 0 点赞 0 评论 522 浏览 评分:9.9
回文子串(三层嵌套循环复杂解法) 摘要:解题思路:从2个到整个为一对来对字符串进行检查;注意事项:各变量关系复杂,需花一定时间仔细琢磨;参考代码:一遍过真爽ヽ( ̄▽ ̄)ノ#include<stdio.h> #include<string.…… 题解列表 2024年11月13日 0 点赞 0 评论 295 浏览 评分:9.9
线段(贪心) 摘要: #include using namespace std; const int N=1e6+10; struct node{ int…… 题解列表 2024年11月13日 0 点赞 0 评论 365 浏览 评分:9.9