update
This commit is contained in:
parent
a5cbcc6ca9
commit
d209ee216f
@ -1,3 +1,4 @@
|
||||
#include <algorithm>
|
||||
#include <bits/stdc++.h>
|
||||
using namespace std;
|
||||
|
||||
@ -5,6 +6,11 @@ int a[11]={5, 13, 19, 21, 37, 56, 64, 75, 80, 88, 92};
|
||||
|
||||
int main()
|
||||
{
|
||||
//C++ stl 二分查找
|
||||
// std::upper_bound()
|
||||
// std::lower_bound()
|
||||
|
||||
|
||||
int x;
|
||||
cin>>x;
|
||||
int l=0,r=10;
|
||||
|
@ -1,3 +1,4 @@
|
||||
#include <algorithm>
|
||||
#include<bits/stdc++.h>
|
||||
using namespace std;
|
||||
bool book[10]; //false表示没用过
|
||||
@ -14,6 +15,8 @@ void print()
|
||||
|
||||
void dfs(int step)
|
||||
{
|
||||
//C++ stl
|
||||
//std::next_permutation()
|
||||
if(step==5)
|
||||
{
|
||||
print();
|
||||
|
@ -1,4 +1,5 @@
|
||||
#include <bits/stdc++.h>
|
||||
#include <variant>
|
||||
using namespace std;
|
||||
|
||||
struct edge {
|
||||
@ -26,7 +27,7 @@ int main() {
|
||||
graph[a].push_back({b,c});
|
||||
graph[b].push_back({a,c});
|
||||
}
|
||||
for (int i = 1; i <= n; i++) {
|
||||
for (int i = 1; i <= n; i++) {
|
||||
dis[i]=INT_MAX/2;
|
||||
}
|
||||
visit[1]=true;
|
||||
|
Loading…
Reference in New Issue
Block a user