题解列表
简简单单,,,,,有一个函数如下,写一程序,输入x,输出y值。
摘要:解题思路:没啥难度,怎么想怎么做注意事项:两位小数参考代码:#include<iostream>
#include <iomanip>
using namespace std;
int main……
题解 2813: 药房管理
摘要:解题思路:注意事项:参考代码:m = int(input())n = int(input())t = list(map(int,input().split()))w = 0c = 0for i in ……
题解 2814: 正常血压
摘要:解题思路:注意事项:参考代码:n = int(input())c = 0max = 0while n: a,b = map(int,input().split()) if 90 <= a ……
[编程入门]三个数最大值C++与言(懒方法)
摘要:解题思路:三个数最大值用两个max就行注意事项:如下图参考代码:#include <bits/stdc++.h> //万能头using namespace std;int main(){ int……
阶乘之和(双循环与单循环两种解题方法)
摘要:解题思路:先求出每一项的阶乘,再把每一项的结果相加,其中,阶乘的求法可以是通过递归来求,也可以在循环中一次一次的把每个数相乘求得对应的阶乘。这在循环中可以用双层循环,也可以只用一个循环,双层循环的话,……
绝了,涨知识了, 科学计数法输出
摘要:解题思路:循环加递归加格式化输出注意事项:首先是变量的大小一定要用对,然后输出格式要对参考代码:#include <iostream>
#include <vector>
#include <io……
题解 2815: 求特殊自然数
摘要:解题思路:注意事项:参考代码:def switch_n(n,d): l = [] while n > 0: l.append(str(n % d)) n = n……
统计满足条件的4位数个数
摘要:解题思路:注意事项:参考代码:n = int(input())l = list(map(int,input().split()))count = 0for i in l: a = i%10 ……