1165: 明明的随机数 摘要:解题思路:注意事项:参考代码:n = int(input()) l=set(map(int,input().split())) l=list(l) l.sort() print(len(l))…… 题解列表 2022年02月03日 0 点赞 0 评论 275 浏览 评分:0.0
汽水瓶C++代码,没有题解 摘要:####C++代码: ```c++ #include using namespace std; int main() { int n=1; while(n) …… 题解列表 2022年02月03日 0 点赞 0 评论 319 浏览 评分:0.0
1164: 数组的距离 摘要:解题思路:注意事项:参考代码:m,n=map(int,input().split()) ls=list(map(int,input().split())) lt=list(map(int,inpu…… 题解列表 2022年02月03日 0 点赞 0 评论 344 浏览 评分:0.0
Hifipsysta-1114-C语言考试练习题_排列(C++代码)思路是先求4选3组合,后求全排列 摘要:解题思路: ① 找到4个数中选3个的所有不同组合(共有4个不同组合) ② 令这4个组合分别输出自己的全排列(可用next_permutation) ```cpp #include #in…… 题解列表 2022年02月04日 0 点赞 0 评论 376 浏览 评分:0.0
Hifipsysta-1123-C语言训练-列出最简真分数序列*(C++代码)本题要义是找出不含公因数的分子 摘要:```cpp #include #include using namespace std; bool real_frac(int n, int N[]){ bool flag=t…… 题解列表 2022年02月04日 0 点赞 0 评论 388 浏览 评分:0.0
Hifipsysta-1134-C语言训练-求PI*(C++代码)浮点累加法 摘要: ```cpp #include #include using namespace std; double term(double n){ return 1/(2*n-…… 题解列表 2022年02月04日 0 点赞 0 评论 353 浏览 评分:0.0
换位置(找规律) 摘要:解题思路:根据输入数的奇偶性,分别进行判断注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n,m; cin>…… 题解列表 2022年02月04日 0 点赞 0 评论 348 浏览 评分:0.0
[编程入门]阶乘求和 摘要:解题思路:注意事项:参考代码:n=int(input())sn=0for i in range(1,n+1): b=1 for x in range(1,i+1): b*=x…… 题解列表 2022年02月04日 0 点赞 0 评论 387 浏览 评分:0.0
编写题解 1015: [编程入门]求和训练 摘要:解题思路:注意事项:注意最后保留2位小数,格式化输出参考代码:a,b,c=map(int,input().split())a0=b0=c0=0for i in range(1,a+1): a0+…… 题解列表 2022年02月04日 0 点赞 0 评论 354 浏览 评分:0.0
编写题解 1016: [编程入门]水仙花数判断 摘要:解题思路:注意事项:参考代码:for x in range(100,1001): flag=0 for i in str(x): flag+=int(i)**3 if …… 题解列表 2022年02月04日 0 点赞 0 评论 395 浏览 评分:0.0