题解列表

筛选

C++数字反转

摘要:解题思路:注意事项:参考代码:#include<iostream>#include<iomanip>#include<cmath>#include<algor……

#与圆相关的计算,python

摘要:解题思路:注意事项:参考代码:r = float(input())pi = 3.14159print(f"{2*r:.4f} {2*pi*r:.4f} {pi*r*r:.4f}")……

容易理解的C++代码(画展布置)

摘要:解题思路:用样例来推一下规律4 21 5 2 4根据题目的公式可知相邻的差值越小越好,那就先sort排序1 2 4 5然后手推一下2*2-1*1=34*4-2*2=125*5-4*4=9两个不太明显多……

最大公约数和最小公倍数

摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void main(String[] args) ……

用2行代码解决

摘要:解题思路:注意事项:参考代码:num = list( map(int,input( ).split( ) ))print(' '.join( map(str,sorted( num))……