题解列表

筛选

快速幂方法(需掌握)

摘要:参考代码:#include<bits/stdc++.h> using namespace std; #define int long long int fastPow(int a,int n,i……

2881: 图像相似度

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;const int N=2e3;ll a……

1177: 三角形

摘要:解题思路:注意事项:参考代码:t = int(input())for x in range(t):    n = int(input())    l = []    l = [ list(map(in……

2824: 求出e的值

摘要:解题思路:注意事项:参考代码:#include<stdio.h>double abb(int a){    if(a==1||a==0)    return 1;    else    return ……

编写题解 1282: 公交汽车

摘要:解题思路:注意事项:参考代码:l = list(map(int,input().strip().split()))n = int(input())dp = [0 for i in range(n)]d……

利用TreeSet特点解决

摘要:解题思路:利用TreeSet的可排序、不重复的特点进行去重、排序注意事项:参考代码:import java.util.Scanner; import java.util.TreeSet; pu……

金明的预算方案(DP)

摘要:解题思路:注意事项:参考代码:#include<iostream>usingnamespacestd;constintN……

1033: [编程入门]自定义函数之字符提取(python)

摘要:#### 1033: [编程入门]自定义函数之字符提取 ​ 可以采用关键字`in`来查询指定字符是否存在于指定字符串中,如果字符串中存在指定字符则返回True,如果不存在则返回False。 ……