此题可AC(C语言代码) 摘要:解题思路:注意事项: 此题可AC参考代码:#include<stdio.h>int main(){ int num[100], i, sum = 0, n…… 题解列表 2018年07月14日 1 点赞 0 评论 1316 浏览 评分:0.0
蓝桥杯算法提高VIP-多项式输出 (C语言代码) 解题思路:严格按照规定的格式输出多项式;应保证系数非零,才能做后续判断;首先,最高次项的系数为负、非最高次项的系数为正或负,都需要加上正负号;然后求出系数的绝对值,对于一个高于0次的项来说,系数为1可以忽略,也就是只需输出绝对值非1的系数,随后, 题解列表 2018年07月14日 2 点赞 1 评论 3685 浏览 评分:9.9
C二级辅导-分段函数 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ float x, y; scanf("%f", &x); if (x < 1) y = x; else if …… 题解列表 2018年07月14日 2 点赞 0 评论 1362 浏览 评分:0.0
蓝桥杯算法提高- c++_ch02_03 (C语言代码) 摘要:#include <stdio.h> int num[3][3]={//3*3的表格 0,-1,1, 1,0,-1, -1,1,0 }; int main(){ int a,b,n; …… 题解列表 2018年07月14日 5 点赞 0 评论 1759 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题3.7 (C语言代码) 摘要:解题思路 这个是正确的!注意事项:参考代码:#include<stdio.h>int main(){ char c1, c2, c3, c4, c5; c1 = 'C'; c2 = &…… 题解列表 2018年07月14日 0 点赞 0 评论 1232 浏览 评分:0.0
String类Byte数组构造方法与ASCII码的简单结合。。题解1161:【回文数(二)】 (Java代码) 解题思路:String类数组构造方法与ASCII码的简单结合。。代码块有点长,但思路很简单。。注意事项:已在代码块部分标明注释参考代码:importjava.util.Scanner;publicclassA1161{publicstaticvoidmain(Stringargs[]){Scanner 题解列表 2018年07月14日 0 点赞 0 评论 2812 浏览 评分:0.0
此题可AC (C语言代码) 摘要:解题思路:注意事项: 此题可AC参考代码:#include<stdio.h>int main(){ int n, sum; scanf("%d", &n); sum = (3…… 题解列表 2018年07月14日 1 点赞 0 评论 1642 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题5.7 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main() { int a[5], b, i; scanf("%d", &b); for (i = 0; b!=0; i++…… 题解列表 2018年07月14日 0 点赞 0 评论 1062 浏览 评分:0.0
数据结构-最小生成树 (C语言代码) 摘要:解题思路: 留个笔记,普鲁斯卡尔算法(和本题数据不符)注意事项:参考代码:#include <iostream> using namespace std; struct mp{ …… 题解列表 2018年07月13日 0 点赞 0 评论 2593 浏览 评分:0.0
优质题解 蓝桥杯算法提高VIP-去注释 (C语言代码) 摘要:解题思路:用数组s模拟栈,从访问栈顶的两个字符入手,找到单行注释开头"//"、多行注释开头"/*"、多行注释结尾"*/"、以及单行注释结尾"\n";注释开始之后需要在各个分支里记录:加上注释符号,注释…… 题解列表 2018年07月13日 1 点赞 1 评论 2459 浏览 评分:8.4