送分了........ 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,a,b,p=0,q=0,sum=0; scanf("%d %d",&a,&b); …… 题解列表 2024年11月26日 0 点赞 0 评论 366 浏览 评分:0.0
送分了........ 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c=0,d=0,e=0; scanf("%d",&a); while(a) …… 题解列表 2024年11月26日 0 点赞 0 评论 240 浏览 评分:0.0
用数学方法和for循环来解此题(ceil函数:向上取整,如6.5→7,且记得循环一次换行一次) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int i,n,N; double x,y,s,t; scan…… 题解列表 2024年11月26日 0 点赞 0 评论 238 浏览 评分:0.0
数组的插入处理 摘要:解题思路:用到了冒泡排序和数组插入注意事项:参考代码:#include <stdio.h>#include <string.h>void swap(int *a,int *b){ int tmp=*a…… 题解列表 2024年11月26日 0 点赞 0 评论 492 浏览 评分:0.0
超级超级超级简单的数组排除 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ char a[81]; gets(a); for(int i=0;a[i]!='\0';i++)…… 题解列表 2024年11月26日 0 点赞 0 评论 227 浏览 评分:0.0
用数组模拟栈,详细注释#3071: 表达式括号匹配(stack) (c++) 摘要:通过观察规律发现,最后出现的左括号最先被匹配 遇到左括号入栈 遇到右括号出栈进行匹配,如果此时栈空,则匹配失败,如果匹配不上,则匹配失败 如果扫描完序列后栈不为空,则匹配失败 ``…… 题解列表 2024年11月26日 0 点赞 0 评论 337 浏览 评分:0.0
送分了........ 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ char a[150]; int i; gets(a); for(i=0;a[i]!=0…… 题解列表 2024年11月26日 0 点赞 0 评论 307 浏览 评分:0.0
求矩阵的两对角线上的元素之和(新手版本) 摘要:解题思路:代码较多,但都很基础,看不懂私聊注意事项:参考代码:#include <stdio.h>int main(){ int N; scanf("%d",&N); int arr[N][N]; i…… 题解列表 2024年11月26日 1 点赞 0 评论 431 浏览 评分:0.0
stack_STL + 详细注释#1683: 数据结构-表达式求值(C++) 摘要:``` #define _CRT_SECURE_NO_WARNINGS 1 #include #include #include #include #include #include …… 题解列表 2024年11月26日 2 点赞 0 评论 312 浏览 评分:0.0
完数的判断 摘要:解题思路:for循环历遍所有数,每个数判断是否为 完数,即此数=因子之和,(与该数相除的余数为0的数为此数的因子),然后输出要求的数据注意事项:参考代码:#include <stdio.h> int …… 题解列表 2024年11月26日 0 点赞 0 评论 539 浏览 评分:0.0