You need to find the largest value in each row of a binary tree.Example:Input: 1 / \ 3 2 / \ \ 5 3 9 Output: [1, 3, 9] 题意:找出二叉树一层的最大值解法:用BFS的方式遍历每... ...
分类:
其他好文 时间:
2017-08-19 22:14:21
阅读次数:
270
B. Cards Sorting time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Vasily has a deck of car ...
分类:
编程语言 时间:
2017-08-18 22:21:57
阅读次数:
244
Description Description Input Output Input Input Output Output Sample Input 10 11 1 2 2 3 3 4 1 4 3 5 5 6 8 6 8 7 7 6 7 9 9 10 6 1 2 3 5 6 9 9 2 9 3 9 ...
分类:
其他好文 时间:
2017-08-18 20:01:35
阅读次数:
232
Description Description Input Output Input Input Output Output Sample Input 5 5 1 4 0 5 2 2 1 2 0 1 0 2 3 4 4 0 3 0 3 1 1 2 2 1 1 Sample Output 9 Samp ...
分类:
其他好文 时间:
2017-08-18 19:54:19
阅读次数:
192
【BZOJ3197】[Sdoi2013]assassin Description Input Output Sample Input 4 1 2 2 3 3 4 0 0 1 1 1 0 0 0 Sample Output 1 HINT 题意:给你两棵同构的树,每个节点都有权值0/1,现在想改变第一棵 ...
分类:
其他好文 时间:
2017-08-18 19:52:54
阅读次数:
136
D. Memory and Scores time limit per test 2 seconds memory limit per test 512 megabytes input standard input output standard output Memory and his frie ...
分类:
Web程序 时间:
2017-08-18 18:36:28
阅读次数:
162
一.iptables简介iptables是与Linux内核集成的过滤防火墙系统,其中包含三表(filter表,nat表,mangle表)、五链(INPUT,OUTPUT,FORWARD,PREROUTING,POSTROUTING)二.安装启动iptable服务三.参数解释用法-t指定表名称-n不作解析-L列出指定表中的策略-A增加策略-p网络协议--dpor..
分类:
系统相关 时间:
2017-08-18 09:39:01
阅读次数:
222
给出N个整数,对着N个整数进行排序 Input Output Input示例 Output示例 ...
分类:
编程语言 时间:
2017-08-17 17:19:01
阅读次数:
109
输入2个正整数A,B,求A与B的最小公倍数。 Input Output Input示例 Output示例 ...
分类:
其他好文 时间:
2017-08-17 14:36:38
阅读次数:
118
传送门:http://codeforces.com/contest/839/problem/D Examples input 33 3 1 output 12 input 42 3 4 6 output 39 Note In the first sample the clans are {1},?{ ...