Java有规律的数列求和 摘要:解题思路:假设第一项的分子为a,分母为b,则第一项为a/b,第二项为(a+b)/a,第三项为((a+b)+a)/(a+b)......总结一下:后一项的分子为前一项分子分母的和,后一项的分母为前一项的…… 题解列表 2024年02月26日 0 点赞 0 评论 148 浏览 评分:0.0
f-string编写题解 2750: 字符菱形 摘要:解题思路:注意事项:参考代码:a=input()for i in range(3): print(' '*(2-i), end='') print(f…… 题解列表 2024年02月26日 1 点赞 0 评论 315 浏览 评分:0.0
奇数单增序列C解 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int N,p,t; scanf("%d",&N); int a[N+1],b[N+1],i,…… 题解列表 2024年02月26日 0 点赞 0 评论 226 浏览 评分:0.0
编写题解 2772: 苹果和虫子-while循环 摘要:解题思路:注意事项:参考代码:n,x,y=map(int,input().split())while y<(n*x): if y%x==0: print(n-(y//x)) …… 题解列表 2024年02月26日 0 点赞 0 评论 314 浏览 评分:0.0
1016: [编程入门]水仙花数判断 摘要:for i in range(100, 1000): temp = i num1 = temp % 10 temp //= 10 num2 = temp % 10 tem…… 题解列表 2024年02月26日 0 点赞 0 评论 190 浏览 评分:0.0
编写题解 2774: 计算三角形面积 摘要:解题思路:注意事项:参考代码:import mathx1,y1,x2,y2,x3,y3=map(float,input().split())a=math.sqrt(math.pow(x1-x2,2)+…… 题解列表 2024年02月26日 0 点赞 0 评论 261 浏览 评分:0.0
设立boolean标志,使其判断大小写、数字、特殊字符等都只判断一次 摘要:解题思路:注意事项:参考代码:import java.util.*; public class Main { public static void main(String[] args) …… 题解列表 2024年02月26日 0 点赞 0 评论 167 浏览 评分:0.0
DR 0001 字符统计 摘要:解题思路: 暂无注意事项: 单个字符用‘’,字符串是索引序列,要通过charAt()去调用单个字符参考代码:import java.util.Scanner;public class Main { …… 题解列表 2024年02月26日 0 点赞 0 评论 258 浏览 评分:0.0
甲流病人初筛C解 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,count=0,i; scanf("%d",&n); char s[200][20…… 题解列表 2024年02月27日 0 点赞 0 评论 296 浏览 评分:0.0
暴力求解最大公约数,但算式求解最小公倍数 摘要:解题思路:注意事项:最小公倍数使用了最大公约数来计算参考代码:import java.util.Scanner; public class Main { public static void…… 题解列表 2024年02月27日 0 点赞 0 评论 322 浏览 评分:0.0