摘要:
#include <vector> #include<iostream> using namespace std; int main() { int k; cin>>k; int left_index=0,right_index=k-1,sum=-1,tmp=0,tmp_index=0; vecto 阅读全文
摘要:
#include <stdio.h> #include<iostream> using namespace std; struct ID { char id_num[16]; int begin; int end; }; int main() { int m,H,M,S; struct ID unl 阅读全文
摘要:
//dfs模版 #include <vector> #include <iostream> using namespace std; struct node { vector<int>children; }t[101]; int ithLevel[101];//保存第i层叶子结点的数目 int ma 阅读全文
摘要:
//Dijkstra算法,模版 #include <algorithm> #include <iostream> using namespace std; int main() { int n,m,C1,C2,c1,c2; int weight[501],dis[501],num[501],w[50 阅读全文