题解列表
快速幂方法(需掌握)
摘要:参考代码:#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……
2878: 计算矩阵边缘元素之和
摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;const int N=2e3;ll a……
2824: 求出e的值
摘要:解题思路:注意事项:参考代码:#include<stdio.h>double abb(int a){ if(a==1||a==0) return 1; else return ……
小白,看看就行,不动脑袋
摘要:解题思路:注意事项:参考代码:#include<iostream>#include<iomanip>using namespace std;double fact(int k){ double m =……
编写题解 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……