Hifipsysta-1202-多输入输出练习1(C++代码) 摘要:```cpp #include #include #include using namespace std; bool arrange_rule(int a, int b){ …… 题解列表 2022年02月05日 0 点赞 0 评论 325 浏览 评分:0.0
【露离】python1028: [编程入门]自定义函数求一元二次方程 摘要:解题思路:注意事项:注意有复数的情况,此时需要注意输出。因为python的复数单位是j,所以考虑format格式化输出。不能单纯的把▲取负再开方,否则会造成虚部和实部相加(或许你们不会犯此错误,反正我…… 题解列表 2022年02月05日 0 点赞 0 评论 412 浏览 评分:0.0
【露离】编写题解 1029: [编程入门]自定义函数处理素数 摘要:解题思路:注意事项:参考代码:def sushu(): for i in range(2,n): if n%i==0: print('not prim…… 题解列表 2022年02月05日 0 点赞 0 评论 375 浏览 评分:0.0
【露离】1030: [编程入门]二维数组的转置 摘要:解题思路:注意事项:参考代码:def zhuanzhi(): a=[input().split(),input().split(),input().split()] b=[[],[],[]…… 题解列表 2022年02月05日 0 点赞 0 评论 348 浏览 评分:0.0
Hifipsysta-1164-数组的距离(C++代码)建立一个距离矩阵很简单 摘要:```cpp #include #include #include using namespace std; const int max_idx=1000; int arr_x[max…… 题解列表 2022年02月05日 0 点赞 0 评论 399 浏览 评分:0.0
Hifipsysta-1173-计算球体积(C++代码) 摘要:```cpp #include #include using namespace std; float compute_volume(float r){ return (4.0/…… 题解列表 2022年02月05日 0 点赞 0 评论 388 浏览 评分:0.0
Hifipsysta-1159-偶数求和(C++代码)最后不足m的要查漏补缺 摘要: ```cpp #include #include #include using namespace std; const int max_len=100; float arr[ma…… 题解列表 2022年02月05日 0 点赞 0 评论 311 浏览 评分:0.0
Hifipsysta-1180-不容易系列(C++代码)递归法 摘要:```cpp #include using namespace std; int a_(int n){ if(n==0){ return 3; } …… 题解列表 2022年02月05日 0 点赞 0 评论 446 浏览 评分:0.0
杨辉三角(相当于一个矩阵的下三角,利用矩阵的知识就可以了) 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int num[30][30] = { 1 }; int main(){ int n;…… 题解列表 2022年02月05日 0 点赞 0 评论 327 浏览 评分:0.0
做题记录2022.2.5(ac:100%) 摘要:解题思路:总交换次数最少->每个位置交换次数最少->找到离不同字母位置最近的相同字母注意事项:参考代码:length = int(input()) list1 = list(input().stri…… 题解列表 2022年02月05日 0 点赞 0 评论 563 浏览 评分:0.0