1859——————与2无关的数 摘要: n = int(input()) sum = 0 for i in range(n+1): #迭代遍历n if i % 2 != 0 and '2' n…… 题解列表 2022年07月08日 0 点赞 0 评论 388 浏览 评分:8.0
1864——————数日子 摘要: n = [31,28,31,30,31,30,19] #已知2018年1月至7月每月的天数 sum = 0 #初始化为0 for i in n: su…… 题解列表 2022年07月08日 0 点赞 0 评论 447 浏览 评分:0.0
1001: [编程入门]第一个HelloWorld程序 摘要: #include int main() { printf("**************************\n"); printf("Hello World!\n"); …… 题解列表 2022年07月08日 0 点赞 0 评论 377 浏览 评分:6.0
1000: [竞赛入门]简单的a+b 摘要: #include int main() { int a,b; //定义两个变量a,b while(~scanf("%d%d",&a,&b)) //非零则继续循环~…… 题解列表 2022年07月08日 0 点赞 0 评论 388 浏览 评分:9.9
1915——————三个整数的排序 摘要:两行代码 n = list(map(int,input().split())) for i in sorted(n)[::-1]:print(i,end=' ') 三行代码 …… 题解列表 2022年07月08日 0 点赞 0 评论 532 浏览 评分:9.9
公约公倍题解——C++, 函数 摘要:参考代码:#include <iostream>using namespace std;// 定义函数int gcf(int a, int b);int lcm(int a, int b);int m…… 题解列表 2022年07月08日 0 点赞 1 评论 325 浏览 评分:9.9
1952——————求长方形的面积 摘要: a,b = map(int,input().split()) print('C:{}'.format(a*2+b*2)) print('S:{}'.format(a*b))…… 题解列表 2022年07月08日 0 点赞 0 评论 590 浏览 评分:0.0
1978——————分类计算 摘要: a,b = map(int,input().split()) sum = a + b square = pow(a,2) + pow(b,2) if square…… 题解列表 2022年07月08日 0 点赞 0 评论 318 浏览 评分:0.0
1979——————求平均工资 摘要: n = int(input()) #输入员工个数 s = [] #空列表 for i in range(1,n+1): #迭代遍历员工个数 a = in…… 题解列表 2022年07月08日 0 点赞 0 评论 445 浏览 评分:0.0