题解列表

筛选

2916: 谁考了第k名

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;long long xh[10001],temp1;int m[10001];float sc……

2914: 铺地毯

摘要:解题思路:逆序查找注意事项:第一个遇到的就是最上层的参考代码:#include<iostream>using namespace std;int a[10001],b[10001],g[10001],……
优质题解

二分时间+区间覆盖

摘要:解题思路:1、对时间进行二分搜索,2、对于每个判断的时间,可以每个阀门视为一个区间,判断由此得到区间组是否能够覆盖整个大区间注意事项:1、右边界需要开大一点,10的9次方不行,需要开到10的10次方2……

java做法解答这题

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

c语言代码解决问题

摘要:解题思路:注意事项:参考代码:#include<stdio.h>struct date{ int year; int month; int day;};int main(){ struct date ……

c语言代码解决问题

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char str[101], str1[1000]; gets(str); ……

简单的函数阶乘求和

摘要:解题思路:注意事项:参考代码:n=int(input())Sn=0def  multiply(n):    sum=1    for i in range(1,n+1):        sum*=i ……

2857: 加密的病历单

摘要:```python s = input() news = str() for c in s: if c.isupper(): news += c.lower() else: ……