题解列表
活动选择 贪心 排序
摘要:解题思路:每一次活动开始的时间要大于等于上一次时间的结束时间注意事项:参考代码:n = int(input())lst = []for i in range(n): begi……
排座椅[NOIP2008 年普及组] 简单贪心
摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h"usingnamespacestd;intm,n,k,l,d……
1357: 母舰 贪心解法
摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h"usingnamespacestd;intm,n,a[100……
很新手的解题,想到什么就写什么
摘要:解题思路:很简单,题目里有哪些量就设哪些量注意事项:最后输出的钱是津津手里的余钱加上妈妈给的钱参考代码:#include<stdio.h>#include<math.h>#de……
题解 1392: 川哥的吩咐..........
摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){char num1[100],num2[100];wh……
1064: 二级C语言-阶乘数列
摘要:解题思路:注意事项:参考代码:def jiecheng(i): output=1 while i!=0: &……
1068: 二级C语言-温度转换
摘要:解题思路:注意事项:参考代码:def ctof(c): f = 32 + c * 9 / 5 return ffor i in range(-100……
1176: 魔板 (BFS+map)
摘要:解题思路: BFS(从A到C)注意事项:第二行顺序从后向前参考代码:#include<iostream>#include<queue>#include<algor……
1013: [编程入门]Sn的公式求和
摘要:解题思路:注意事项:参考代码:def sno(i): stable = 2 output = 0 while i >……