题解列表

筛选

python解决明明的随机数

摘要:解题思路:注意虽然题上说“明明要生成随机数”,但是实际上并没有生成随机数,需要理解题意。注意事项:参考代码:n = int(input()) a = eval(input().replace(&#3……

只做最好的题解

摘要:#include<iostream> //#include<bits/stdc++.h> #include<cmath> #include<cstring> #include<algorith……

Java优质实现,

摘要:解题思路:注意事项:居然是两次中根遍历,笑掉我的大牙参考代码:import java.util.LinkedList;import java.util.Scanner;class TreeNode{ ……

容易理解的C语言代码

摘要:解题思路:注意事项:参考代码:#include <stdio.h> int LeapYear(int year)  //判断是否为闰年,闰年2月有29天,平年28天 {     if (ye……