摘要:
1 class Solution { 2 public: 3 typedef pair<int,int> pii; 4 struct cmp{ 5 bool operator ()(pii &a,pii &b) 6 { 7 return a.second>b.second; 8 } 9 }; 10 阅读全文
posted @ 2021-12-10 17:31
matt-11
阅读(35)
评论(0)
推荐(0)
摘要:
ACWing 1133. 第二短路 1 #include<bits/stdc++.h> 2 using namespace std; 3 typedef pair<int,int> pii; 4 const int N=1e5+5; 5 int dis1[N],dis2[N],ans=INT_MAX 阅读全文
posted @ 2021-12-10 16:04
matt-11
阅读(64)
评论(0)
推荐(0)
摘要:
leetcode 144. 二叉树的前序遍历 1 /** 2 * Definition for a binary tree node. 3 * struct TreeNode { 4 * int val; 5 * TreeNode *left; 6 * TreeNode *right; 7 * Tr 阅读全文
posted @ 2021-12-10 13:56
matt-11
阅读(41)
评论(0)
推荐(0)

浙公网安备 33010602011771号