汽水瓶(python代码) 摘要:解题思路:注意事项:参考代码while True: n=int(input()) if n==0: break c=0 while n>=3: c=…… 题解列表 2024年03月17日 0 点赞 0 评论 481 浏览 评分:0.0
C++两个函数求阶乘和x的平方,并通过主函数调用; 摘要:解题思路:注意事项:注意返回值为double类型参考代码:#include<iostream>#include<math.h>#include<iomanip>using namespace std;…… 题解列表 2024年03月17日 0 点赞 0 评论 479 浏览 评分:0.0
自定义函数之数字后移 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main {static Scanner sc=new Scanner(System.in);…… 题解列表 2024年03月17日 0 点赞 0 评论 462 浏览 评分:9.9
与指定数字相同的数的个数 摘要:解题思路:注意事项:参考代码:s=0a=list(map(int,input().split()))b=list(map(int,input().split()))for i in b: if …… 题解列表 2024年03月17日 0 点赞 0 评论 470 浏览 评分:0.0
题目 1151: C语言训练-计算一个整数N的阶乘 摘要:解题思路:循环注意事项:无参考代码:n=int(input())s=1for i in range(1,n+1): s=s*iprint(s)…… 题解列表 2024年03月17日 0 点赞 4 评论 366 浏览 评分:9.9
约瑟夫的环 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class wc {static Scanner sc=new Scanner(System.in);pu…… 题解列表 2024年03月17日 1 点赞 0 评论 447 浏览 评分:0.0
2810: 鸡尾酒疗法 (Python版)(简单易懂) 摘要:解题思路:用二维数组参考代码:#输入nn=int(input())#单独输入鸡尾酒实验数据jwj=list(map(int,input().split()))#在数组末尾增设实验结果jwj.appen…… 题解列表 2024年03月17日 1 点赞 2 评论 802 浏览 评分:9.9
2118: 信息学奥赛一本通T1179-奖学金 c++ 摘要:解题思路:注意题目没说有5个人,所以输出时有5个输出5个,没有输出n个参考代码:#include <bits/stdc++.h> using namespace std; struct stu …… 题解列表 2024年03月17日 1 点赞 0 评论 564 浏览 评分:6.4
2848题: 基因相关性 摘要:参考代码: Scanner sc=new Scanner(System.in); double n = sc.nextDouble(); String x =…… 题解列表 2024年03月17日 0 点赞 0 评论 535 浏览 评分:9.9
2008: 函数重载练习-比较大小-简单 摘要:没啥好说的……参考代码:#include <bits/stdc++.h> using namespace std; int cmp(int x,int y) { return max(…… 题解列表 2024年03月17日 0 点赞 0 评论 761 浏览 评分:8.0