2548:优秀的拆分 摘要:解题思路:利用二进制注意事项:参考代码:n=int(input())a=list(str(bin(n)))#二进制a=a[2:]#去掉0ba.reverse()z=[]if int(a[0])==1:…… 题解列表 2022年04月06日 0 点赞 0 评论 582 浏览 评分:6.0
List直接比较器 摘要:import java.util.*;public class Main { static Scanner in=new Scanner(System.in); public static…… 题解列表 2022年04月06日 0 点赞 0 评论 356 浏览 评分: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 评论 518 浏览 评分:9.9
利用列表的比较器直接进行排序 摘要:import java.util.*;public class Main { static Scanner in=new Scanner(System.in); public static…… 题解列表 2022年04月06日 0 点赞 0 评论 337 浏览 评分:0.0
1029: [编程入门]自定义函数处理素数 摘要:解题思路:注意事项:参考代码:n = int(input())def myisprime(x): if x < 2: print("not prime") else: …… 题解列表 2022年04月06日 0 点赞 1 评论 422 浏览 评分:9.9
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 评论 712 浏览 评分: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 评论 497 浏览 评分:9.9
编写题解 1005: [编程入门]温度转换 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ double f,c; scanf("%lf",&f); c=5*(f-32)/9; print…… 题解列表 2022年04月06日 0 点赞 0 评论 425 浏览 评分: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 评论 557 浏览 评分:6.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 评论 363 浏览 评分:0.0