题解列表

筛选

欣赏天才之作

摘要:import math def find_defective_ball(N):     k = math.ceil(math.log(N, 3))     return k while Tru……

2672 字符统计

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

贪心盾神与积木游戏(超时有点烦)

摘要:解题思路:     贪心点:先帮差值最小的完成积木作品注意事项:参考代码:#  时间超限:   64 分      运行时间: 6803ms  m = int(input()) for _ in ……

天才的两种解法

摘要:while True:     try:         # 从输入中读取一个6位的正整数,表示金币的总重量         k = int(input()) - 265716  # 减去初始值……

1099: 校门外的树(C++)

摘要:解题思路:先对区间的起始点进行顺序排序,方便直接讨论区间终点的大小情况,根据情况对重复的区间进行去除,对衔接的区间进行拼接另外有先对整段区间赋值,再根据区间改变赋值,简化区间情况讨论的作法。参考代码:……

1978: 分类计算

摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cmath> using namespace std; int main() {     int a,b……