题解列表
编写题解 2772: 苹果和虫子-while循环
摘要:解题思路:注意事项:参考代码:n,x,y=map(int,input().split())while y<(n*x): if y%x==0: print(n-(y//x)) ……
2767: 计算多项式的值
摘要:解题思路: 先思考数学中的式子,拿到C语言中该如何解决 a,b,c,d,x 是我们自己输入的是给定的值 X的三次方就是3个X相乘 X*X*X 那就好解决咯参考代码:#include<s……
1016: [编程入门]水仙花数判断
摘要:for i in range(100, 1000): temp = i num1 = temp % 10 temp //= 10 num2 = temp % 10 tem……
编写题解 2774: 计算三角形面积
摘要:解题思路:注意事项:参考代码:import mathx1,y1,x2,y2,x3,y3=map(float,input().split())a=math.sqrt(math.pow(x1-x2,2)+……
设立boolean标志,使其判断大小写、数字、特殊字符等都只判断一次
摘要:解题思路:注意事项:参考代码:import java.util.*;
public class Main {
public static void main(String[] args) ……
DR 0001 字符统计
摘要:解题思路: 暂无注意事项: 单个字符用‘’,字符串是索引序列,要通过charAt()去调用单个字符参考代码:import java.util.Scanner;public class Main { ……