//It is made by jump~ #include <iostream> #include <cstdlib> #include <cstring> #include <cstdio> #include <cmath> #include <algorithm> #include <ctim ...
分类:
其他好文 时间:
2020-07-27 17:46:04
阅读次数:
68
# -*- coding: utf-8 -*- # @Time : 2020/7/25 22:45 # @Author : Breeze # @FileName: login_while.py user_name = "Breeze" password = "123456789" counter = ...
分类:
其他好文 时间:
2020-07-27 15:35:26
阅读次数:
67
# -*- coding: utf-8 -*- # @Time : 2020/7/25 13:59 # @Author : Breeze num1 = 1 while num1 <= 9: num2 = 1 while num2 <= num1: print("{}*{}={}".format(nu ...
分类:
其他好文 时间:
2020-07-27 15:35:12
阅读次数:
53
本体考察数组的使用。注意本体使用vector的指针形式。 C++版 #include <iostream> #include <vector> #include <algorithm> using namespace std; void printMatrixInCircle(vector<vect ...
分类:
其他好文 时间:
2020-07-27 13:53:20
阅读次数:
79
. PHP 和 MySql 代码实例 query("SELECT CompanyName, City, Country FROM Customers"); $outp = ""; while($rs = $result->fetch_array(MYSQLI_ASSOC)) { if ($outp ...
分类:
其他好文 时间:
2020-07-27 09:52:06
阅读次数:
76
Given a set of sticks of various lengths, is it possible to join them end-to-end to form a square? InputThe first line of input contains N, the number ...
分类:
其他好文 时间:
2020-07-27 09:42:59
阅读次数:
80
先序遍历:根-->左-->右的形式 public static void preOrderTraveralWithStsck(Node node){ Stack<Node> stack = new Stack(); //当节点的左右孩子全为空并且,栈空表示遍历完毕 while (node != nu ...
分类:
编程语言 时间:
2020-07-27 09:42:07
阅读次数:
81
#include<bits/stdc++.h>#define ll long long#define speed_up ios::sync_with_stdio(false);cin.tie(0);cout.tie(0);using namespace std;const ll nl=1e5+5;/ ...
分类:
其他好文 时间:
2020-07-26 23:23:20
阅读次数:
105
###思路 这个题不难,就是先Trajan缩点减小点数和边数的规模,然后在缩完点的图上跑DP即可。注意要用toposort解决DP后效性(或者是使用记忆化搜索)。 Code #include<iostream> #include<cstdio> #include<algorithm> #includ ...
分类:
其他好文 时间:
2020-07-26 23:07:29
阅读次数:
56
题目描述 给定一个 \(n\) 个点 \(m\) 条边的无向连通图,编号为 $1$ 到 \(n\) ,没有自环,可能有重边,每一条边有一个正权值 \(w\) 。 给出 \(q\) 个询问,每次给出两个不同的点 \(u\) 和 \(v\) ,求一条从 \(u\) 到 \(v\) 的路径上边权的最大值最 ...
分类:
Web程序 时间:
2020-07-26 19:44:14
阅读次数:
96