1085: A+B for Input-Output Practice (I) 摘要:解题思路:这题其实谁都会做,主要是要看出题目里的要求:“with one line of output for each line in input”,也就是要用EOF来结束注意事项:输出时别忘记换行…… 题解列表 2022年01月27日 0 点赞 4 评论 1279 浏览 评分:9.9
划划水啦~~~ 摘要:解题思路:循环嵌套,规定步长注意事项:sum的归零参考代码:#include<stdio.h> int main() { int n; scanf("%d",&n); …… 题解列表 2022年01月27日 0 点赞 0 评论 854 浏览 评分:9.9
有规律的数列求和(C语言代码) 摘要:####解题思路: ``` 2/1 + 2/3 + 5/3 + 5/8 + 13/8 + 21/13 + …… Sn = Y1/X1 + Y2/X2 + Y3/X3 + Y4/X4 + …… +…… 题解列表 2022年01月27日 0 点赞 0 评论 378 浏览 评分:9.9
顺便练习一下函数 摘要:#include<stdio.h> int fun(int n) { int ret; if ( n%2==0 ) { ret=n/2; printf("%d/2=%d\n…… 题解列表 2022年01月27日 0 点赞 0 评论 382 浏览 评分:9.9
编写题解 1131: C语言训练-斐波纳契数列 摘要:```python l=[1,1] n=int(input()) if n==1: print(l[0]) elif n==2: print('{} {}'.format(…… 题解列表 2022年01月27日 0 点赞 1 评论 483 浏览 评分:9.9
[编程入门]自定义函数之字符提取(c语言) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int fun(char x[],char b[]){ int n,l,j=0; …… 题解列表 2022年01月27日 0 点赞 0 评论 402 浏览 评分:9.9
蓝桥杯基础练习VIP-Huffuman树——STL 摘要: 思路:利用multisetd的有序性和自带的删除插入的操作,模拟题意 例如: set.inser(x) 向set中插入一个数x; set.erase(x) 若x为迭代器则删去指向的数…… 题解列表 2022年01月27日 0 点赞 2 评论 382 浏览 评分:9.9
[STL训练]Train Problem I---(题解,C++代码) 摘要:解题思路:下面代码有注释,可以自己理解的注意事项:参考代码:#include <stdio.h>#include <string.h>#include <stdlib.h>#include <algo…… 题解列表 2022年01月27日 0 点赞 0 评论 529 浏览 评分:9.9
编写题解 1218: 排列 (Java代码) 摘要:不用排序,直接打印。import java.util.Scanner; public class Main{ public static void main(String[] args)…… 题解列表 2022年01月27日 0 点赞 0 评论 404 浏览 评分:9.9
python-复数四则运算 摘要:解题思路:这道题理解起来不难,但是有两个细节要尤其注意。①开始我们要以浮点数读取所给的值,得出运算结果a+bi后,如果a和b的值是整数而不是小数,那么在输出时就要以整数的形式输出。②还有一个情况是题目…… 题解列表 2022年01月27日 0 点赞 0 评论 832 浏览 评分:9.9