UKIEPC2017 - K - Knightsbridge Rises - 网络流
题目链接 https://codeforces.com/gym/101606 题目 High-rise buildings in the wealthy retail district of Knightsbridge are usually built with exotic hoisting machines known, in construction circles, as...
题目链接 https://codeforces.com/gym/101606 题目 High-rise buildings in the wealthy retail district of Knightsbridge are usually built with exotic hoisting machines known, in construction circles, as...
常用指令 :sp # 上下分屏 :res y # 设置当前分屏高度为y :vsp # 左右分屏 :vertical res x # 设置当前分屏宽度为x Ctrl + w + hjkl # 先按Ctrl + w,然后再按hjkl在分屏之间移动 :e # 刷新当前文件 :e filename # 在当前窗口打开名字为filename的文件
题目链接 https://acm.hdu.edu.cn/showproblem.php?pid=6396 题目 Lawson is a magic swordsman with k kinds of magic attributes v1,v2,v3,…,vk. Now Lawson is faced with n monsters and the i-th monster als...
题目链接 https://acm.hdu.edu.cn/showproblem.php?pid=6393 题目 Problem Description Chika is elected mayor of Numazu. She needs to manage the traffic in this city. To manage the traffic is too hard fo...
题目链接 https://www.nowcoder.com/acm/contest/145/C 题目描述 A binary string s of length $N = 2^n$ is given. You will perform the following operation n times : Choo...
不多比比,直接上模板 ## include<bits/stdc++.h> //大整数 struct BigInteger { static const int BASE = 100000000;//和WIDTH保持一致 static const int WIDTH = 8;//八位一存储,如修改记得修改输出中的%08d bool sign;//符号, ...
摘要 需要头文件<algorithm> 函数名 功能描述 sort 对给定区间所有元素进行排序 stable_sort 对给定区间所有元素进行稳定排序 partial_sort 对给定区间所有...
原文 https://www.lucien.ink/archives/309/ 起因 很久以前遇到过一个Bug,就是在for循环中使用iterator遍历容器时erase这个指针,导致了一些意想不到的Bug,今天突然想起来,做了点探究。 过程 std::set 对于set,执行以下代码: ## include <bits/stdc++.h> std::set...
题目链接 https://codeforces.com/contest/1008/problem/C 题目 You are given an array of integers. Vasya can permute (change order) its integers. He wants to do it so that as many as possible integers ...
题目链接 https://codeforces.com/contest/1008/problem/B 题目 There are $n$ rectangles in a row. You can either turn each rectangle by $90$ degrees or leave it as it is. If you turn a rectangle, its w...