1026: [编程入门]数字逆序输出——Python 摘要:解题思路:利用python中的切片注意事项:参考代码:l = list(map(int,input().split()))for i in l[::-1]: print(i,end = '…… 题解列表 2022年04月06日 0 点赞 0 评论 682 浏览 评分:0.0
1027: [编程入门]自定义函数处理最大公约数与最小公倍数——Python 摘要:解题思路:暴力查询注意事项:参考代码:m,n = map(int,input().split())max_=max(m,n)min_=min(m,n)#最小公倍数for j in range(min_…… 题解列表 2022年04月06日 0 点赞 0 评论 533 浏览 评分:8.0
编写题解 1003: [编程入门]密码破译 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ char c1,c2,c3,c4,c5; scanf("%c%c%c%c%c",&c1,&c2,&c…… 题解列表 2022年04月06日 0 点赞 0 评论 406 浏览 评分:0.0
1030: [编程入门]二维数组的转置 摘要:解题思路:注意事项:参考代码:a1,a2,a3 = map(int,input().split())b1,b2,b3 = map(int,input().split())c1,c2,c3 = map(…… 题解列表 2022年04月06日 0 点赞 0 评论 604 浏览 评分:6.0
编写题解 1005: [编程入门]温度转换 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ double f,c; scanf("%lf",&f); c=5*(f-32)/9; print…… 题解列表 2022年04月06日 0 点赞 0 评论 479 浏览 评分:0.0
1086: A+B for Input-Output Practice (II) 摘要:题目要求:第一行整数表示输入整数a和b的数量。您的任务是计算a+b解题思路:通过二维数组保存数据,利用循环求和参考代码:#include<stdio.h>int main(){ int a[2]…… 题解列表 2022年04月06日 0 点赞 0 评论 761 浏览 评分:9.0
杨辉三角 python 摘要:解题思路:注意事项:参考代码:i,j=map(int,input().split())n=1000a=[[0]*n for i in range(n)]for c in range(n): fo…… 题解列表 2022年04月06日 0 点赞 0 评论 564 浏览 评分:9.9
1029: [编程入门]自定义函数处理素数 摘要:解题思路:注意事项:参考代码:n = int(input())def myisprime(x): if x < 2: print("not prime") else: …… 题解列表 2022年04月06日 0 点赞 1 评论 461 浏览 评分:9.9
利用列表的比较器直接进行排序 摘要:import java.util.*;public class Main { static Scanner in=new Scanner(System.in); public static…… 题解列表 2022年04月06日 0 点赞 0 评论 396 浏览 评分:0.0
第一次,来个简单的。 摘要:#include<stdio.h> int main() { int x,y; scanf("%d",&x); if (x<=15) { y=2*x; } else …… 题解列表 2022年04月06日 0 点赞 0 评论 562 浏览 评分:9.9