新手较简单的数组方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[55]; int i; a[0]=1;a[1]=2;a[2]=3;a[3]=4; for(i=4;i…… 题解列表 2024年11月11日 0 点赞 0 评论 483 浏览 评分:9.9
直接写就行了 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<math.h> int main() { int i,j=0,n,Sn=0; scanf…… 题解列表 2024年11月11日 2 点赞 1 评论 874 浏览 评分:9.9
最低通行费 (数字三角形模型dp) 摘要: 二选一:我也不知道为什么限制为什么不同。 方法一: #include using namespace std; const int N=110; i…… 题解列表 2024年11月11日 0 点赞 0 评论 449 浏览 评分:9.9
看不懂直接喷我 摘要:解题思路:注意事项: 看我评论!!!!!参考代码: #include #include int main() { int i; char a[300]; gets (a); int num=strle…… 题解列表 2024年11月11日 0 点赞 1 评论 541 浏览 评分:9.9
简单易懂while循环就可以完成 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ long int a,n,Tom; while(scanf("%ld",&n)!=EOF) { …… 题解列表 2024年11月11日 0 点赞 0 评论 541 浏览 评分:9.9
[编程入门]结构体之成绩统计2 摘要:```c #include struct a { char a[30]; char b[30]; //结构体 int c; int d; int e; }…… 题解列表 2024年11月12日 1 点赞 0 评论 652 浏览 评分:9.9
字符串最大跨距(指针方法) 摘要:解题思路:使用strstr函数反复查找寻找到字符串最后出现的位置,最后利用指针相减的特性求出跨距。注意事项:注意录入数据时的格式;注意strstr查找不到字符串时会返回空指针(NULL);重复查找时注…… 题解列表 2024年11月12日 0 点赞 0 评论 470 浏览 评分:9.9
试了下另一个选项 摘要:解题思路:题目也说了,但好奇试了下,输出no,不行。注意事项:参考代码:#include<studio.h>int main(){ printf("yes"); return…… 题解列表 2024年11月12日 0 点赞 0 评论 312 浏览 评分:9.9
屎盆子镶金边教程!!!!! 摘要:#include <stdio.h>#include <string.h>int main() { char part1[] = "Hello "; // 前一段字母,注意这里有个空格 …… 题解列表 2024年11月12日 0 点赞 1 评论 291 浏览 评分:9.9
1207: 字符排列问题(排列组合的思想,合理利用全排列) 摘要:对于该题,通过排列组合的方法简单易懂注意:对于n个数的全排列的最多种类即为n!(n的阶乘)因为给出的数据有重复的字母,而重复的字母会对全排列的种类有影响思路: 以本题所给数据为例:输入四个字…… 题解列表 2024年11月12日 0 点赞 0 评论 585 浏览 评分:9.9