随笔分类 - 算法-BFS/DFS
摘要:1307 绳子与重物 题目来源: Codility 基准时间限制:1 秒 空间限制:131072 KB 分值: 40 难度:4级算法题 1307 绳子与重物 题目来源: Codility 基准时间限制:1 秒 空间限制:131072 KB 分值: 40 难度:4级算法题 1307 绳子与重物 题目来
阅读全文
摘要:D. Olya and Energy Drinks time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output D. Olya and En
阅读全文
摘要:1400 序列分解 基准时间限制:1 秒 空间限制:131072 KB 分值: 40 难度:4级算法题 1400 序列分解 基准时间限制:1 秒 空间限制:131072 KB 分值: 40 难度:4级算法题 1400 序列分解 基准时间限制:1 秒 空间限制:131072 KB 分值: 40 难度:
阅读全文
摘要:1060 最复杂的数 题目来源: Ural 1748 基准时间限制:1 秒 空间限制:131072 KB 分值: 40 难度:4级算法题 1060 最复杂的数 题目来源: Ural 1748 基准时间限制:1 秒 空间限制:131072 KB 分值: 40 难度:4级算法题 1060 最复杂的数 题
阅读全文
摘要:1832 先序遍历与后序遍历 基准时间限制:1 秒 空间限制:131072 KB 分值: 40 难度:4级算法题 1832 先序遍历与后序遍历 基准时间限制:1 秒 空间限制:131072 KB 分值: 40 难度:4级算法题 1832 先序遍历与后序遍历 基准时间限制:1 秒 空间限制:13107
阅读全文
摘要:Travel The country frog lives in has nn towns which are conveniently numbered by 1,2,…,n1,2,…,n. Among n(n−1)2n(n−1)2 pairs of towns, mm of them are c
阅读全文
摘要:Fennec VS. Snuke Time limit : 2sec / Memory limit : 256MB Score : 400 points Problem Statement Fennec and Snuke are playing a board game. On the board
阅读全文
摘要:Description A rooted tree is a well-known data structure in computer science and engineering. An example is shown below: In the figure, each node is l
阅读全文
摘要:Black And White Time Limit: 2000/2000 MS (Java/Others) Memory Limit: 512000/512000 K (Java/Others)Total Submission(s): 3937 Accepted Submission(s): 10
阅读全文
摘要:漫步校园 LL最近沉迷于AC不能自拔,每天寝室、机房两点一线。由于长时间坐在电脑边,缺乏运动。他决定充分利用每次从寝室到机房的时间,在校园里散散步。整个HDU校园呈方形布局,可划分为n*n个小方格,代表各个区域。例如LL居住的18号宿舍位于校园的西北角,即方格(1,1)代表的地方,而机房所在的第三实
阅读全文
摘要:超级密码 Problem Description Ignatius花了一个星期的时间终于找到了传说中的宝藏,宝藏被放在一个房间里,房间的门用密码锁起来了,在门旁边的墙上有一些关于密码的提示信息:密码是一个C进制的数,并且只能由给定的M个数字构成,同时密码是一个给定十进制整数N(0<=N<=5000)
阅读全文
摘要:Robbery Inspector Robstop is very angry. Last night, a bank has been robbed and the robber has not been caught. And this happened already for the thir
阅读全文
摘要:C. Amr and Chemistry time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output C. Amr and Chemistry
阅读全文
摘要:DP Time Limit:10000MS Memory Limit:165888KB 64bit IO Format:%lld & %llu Submit Status Description 硬币购物一共有4种硬币。面值分别为c1,c2,c3,c4。某人去商店买东西,去了tot次。每次带di枚c
阅读全文
摘要:Eight Time Limit: 10000/5000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 20993 Accepted Submission(s): 5634Special
阅读全文
摘要:Collect More Jewels Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 6857 Accepted Submission(s):
阅读全文
摘要:Fire Net Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 10462 Accepted Submission(s): 6154 Probl
阅读全文
摘要:H - Brain Network (medium) Time Limit:2000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64u CodeForces 690C2 H - Brain Network (medium) Time Limi
阅读全文
摘要:B - 棋盘问题 Time Limit:1000MS Memory Limit:10000KB 64bit IO Format:%lld & %llu Practice POJ 1321 B - 棋盘问题 Time Limit:1000MS Memory Limit:10000KB 64bit IO
阅读全文
摘要:N - Broken Keyboard (a.k.a. Beiju Text) Time Limit:1000MS Memory Limit:0KB 64bit IO Format:%lld & %llu Description You’re typing a long text with a br
阅读全文

浙公网安备 33010602011771号