编写题解 1951: 求平方和 摘要:解题思路:注意事项:参考代码:a = input()b = a.split(" ")c = (int(b[0]) * int(b[0]) + int(b[1]) * int(b[1]))print(c…… 题解列表 2022年06月16日 0 点赞 0 评论 391 浏览 评分:0.0
自定义函数之字符串反转 摘要:参考代码:#include <stdio.h>#include <stdlib.h>#include <string.h>int main(){char ch[100],*p; int i;fgets…… 题解列表 2022年06月16日 0 点赞 0 评论 357 浏览 评分:0.0
编写题解 1018: [编程入门]有规律的数列求和-递归 摘要:解题思路:注意事项:参考代码:n=int(input())f1=1f2=2s=f2/f1for i in range(2,n+1): f1,f2=f2,f1+f2 s=s+f2/f1pri…… 题解列表 2022年06月16日 0 点赞 0 评论 472 浏览 评分:0.0
简单便于理解的逻辑——C语言 摘要:解题思路: 申请一个字符数组,之后用gets接收输入的字符; 撰写函数时输入指针会方便很多,然后写一个循环,不必 题解列表 2022年06月17日 0 点赞 0 评论 337 浏览 评分:0.0
[编程入门]实数的打印 摘要:思路:暴力解法,直接输出,输出格式不用管,6.2f意为:数字整体长度包括小数点为 6 位,保留 2 位小数,不足则以空格补齐,对齐方式为右对齐。当实际长度大于格式定义的位数时,如 12345678.1…… 题解列表 2022年06月17日 0 点赞 0 评论 418 浏览 评分:0.0
计算2的n次方 摘要:解题思路:只是随手一做,有很多不好的地方,请谅解注意事项:注意时间复杂度参考代码:#include<stdio.h>#include<iostream>using namespace std;int …… 题解列表 2022年06月17日 0 点赞 0 评论 411 浏览 评分:0.0
蓝桥杯2018年第九届真题-交换次数 摘要:#### 暴力 ``` #include #include #include #include using namespace std; const int N = 10010; …… 题解列表 2022年06月17日 0 点赞 0 评论 475 浏览 评分:0.0
密码破译的一些个人理解 摘要:解题思路:使用数组来存储输入的密码,然后再加上while循环对每个字符进行加密,最后输出。注意事项:只能加密5位字符型数据;参考代码:#include<stdio.h>int main(){ in…… 题解列表 2022年06月17日 0 点赞 0 评论 379 浏览 评分:0.0
求矩阵的两对角线上的元素之和 C语言 摘要:解题思路:先求主对角线上的和,再求副对角线的和,但是注意第二个求和中,当数组为奇数行列的时候,不能重复的加同一个数字注意事项:参考代码:#include <stdio.h>int main(){ …… 题解列表 2022年06月18日 0 点赞 0 评论 487 浏览 评分:0.0
[编程入门]自定义函数之数字分离 摘要:解题思路:此处是提前声明的函数,个人习惯;注意事项:参考代码:#include <stdio.h>void si_wei_shu(int num);int main(){ int a; scan…… 题解列表 2022年06月18日 0 点赞 0 评论 514 浏览 评分:0.0