C语言 if语句的使用 摘要:解题思路:利用根号下b^2-4ac以及x=-b+-根号下b^2-4ac/2a解决问题;不要忘记根的判别式小于0在实数范围无解,但在复数范围存在解;注意事项: 2*a一定要记得加括号,参考代…… 题解列表 2023年11月28日 0 点赞 0 评论 292 浏览 评分:0.0
输出亲朋字符串 摘要:解题思路:注意事项:chr为解码将将ascii值转为字符ord为编码及将字符转为ascii值参考代码:n = str(input())ls=[]for i in range(len(n)-1): …… 题解列表 2023年11月28日 0 点赞 0 评论 164 浏览 评分:0.0
c代码记录之只出现一次的首个字符 摘要: #include #include int main(){ char str[100000]; gets(str); …… 题解列表 2023年11月28日 0 点赞 0 评论 175 浏览 评分:0.0
这题简单吧 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c; scanf("%d%d",&a,&b); c=a%b; p…… 题解列表 2023年11月28日 0 点赞 0 评论 156 浏览 评分:0.0
c++指针法(指针练习) 摘要:解题思路:初试指针注意事项:参考代码:#include <iostream>using namespace std;int main(){ int arr[9]; int i; for(i=0;i<9…… 题解列表 2023年11月28日 0 点赞 0 评论 275 浏览 评分:0.0
题解 2834: 与指定数字相同的数的个数 摘要: #include using namespace std; int main(){ int a[100],c,sum=0,b; cin>>c; …… 题解列表 2023年11月28日 0 点赞 0 评论 220 浏览 评分:0.0
蓝桥杯基础练习VIP-FJ的字符串 摘要:解题思路:注意事项:参考代码:// 包含标准输入输出库的头文件 #include <stdio.h> // 包含字符串操作库的头文件 #include <string.h> // 主函…… 题解列表 2023年11月28日 1 点赞 0 评论 300 浏览 评分:0.0
题解 1098: 陶陶摘苹果 摘要: #include using namespace std; int a[20000],b,c,sum; int main(){ for(int i=0…… 题解列表 2023年11月28日 0 点赞 0 评论 314 浏览 评分:0.0
or()循环里面的表达式 摘要:解题思路:首先确定n,是有几项相加,然后利用for()循环n次进行相加;其次就是每次计算时要加的项,也就是几个2,我的方法是: 1、先定义a=0; 2、由于后一项都比前一项…… 题解列表 2023年11月28日 0 点赞 0 评论 159 浏览 评分:0.0
新手试了试,大佬们看看 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int i,sz; char arr[20]={0}; gets(arr); sz = sizeof(a…… 题解列表 2023年11月28日 0 点赞 0 评论 128 浏览 评分:0.0