乐逍遥xwl

导航

上一页 1 2 3 4 5 6 ··· 24 下一页

2019年8月24日 #

Educational Codeforces Round 71 (Rated for Div. 2) B - Square Filling

摘要: 原文链接:https://www.cnblogs.com/xwl3109377858/p/11404261.html Educational Codeforces Round 71 (Rated for Div. 2) B - Square Filling You are given two mat 阅读全文

posted @ 2019-08-24 12:47 乐逍遥xwl 阅读(228) 评论(0) 推荐(0) 编辑

Educational Codeforces Round 71 (Rated for Div. 2) A - There Are Two Types Of Burgers

摘要: 原文链接:https://www.cnblogs.com/xwl3109377858/p/11404050.html Educational Codeforces Round 71 (Rated for Div. 2) A - There Are Two Types Of Burgers There 阅读全文

posted @ 2019-08-24 11:34 乐逍遥xwl 阅读(350) 评论(0) 推荐(0) 编辑

HDU 2544 最短路 (dijkstra+堆优化)

摘要: 原文链接:https://www.cnblogs.com/xwl3109377858/p/11403644.html Problem Description 在每年的校赛里,所有进入决赛的同学都会获得一件很漂亮的t-shirt。但是每当我们的工作人员把上百件的衣服从商店运回到赛场的时候,却是非常累的 阅读全文

posted @ 2019-08-24 09:50 乐逍遥xwl 阅读(230) 评论(0) 推荐(0) 编辑

2019年8月22日 #

拓扑排序

摘要: 先建图,根据边计算所有顶点的入度,然后扫一遍将入度为0的顶点入队, 同时,该顶点指向的顶点入度减一,在队列中重复此操作, 直到所有点都被分离,如果顶点没有全部分离出来, 那么说明有环,不存在拓扑序,无解,详情见代码。 阅读全文

posted @ 2019-08-22 21:25 乐逍遥xwl 阅读(128) 评论(0) 推荐(0) 编辑

2019年8月10日 #

POJ 3190 Stall Reservations (优先队列+结构体)

摘要: Stall Reservations Description Oh those picky N (1 <= N <= 50,000) cows! They are so picky that each one will only be milked over some precise time in 阅读全文

posted @ 2019-08-10 10:25 乐逍遥xwl 阅读(153) 评论(0) 推荐(0) 编辑

POJ 3264 Balanced Lineup (区间最值问题)

摘要: Balanced Lineup Description For the daily milking, Farmer John's N cows (1 ≤ N ≤ 50,000) always line up in the same order. One day Farmer John decides 阅读全文

posted @ 2019-08-10 10:02 乐逍遥xwl 阅读(153) 评论(0) 推荐(0) 编辑

回文数 (大数运算+进制处理)

摘要: 回文数 题目描述 若一个数(首位不为零)从左向右读与从右向左读都一样,我们就将其称之为回文数。 例如:给定一个10进制数56,将56加56(即把56从右向左读),得到121是一个回文数。 又如:对于10进制数87: STEP1:87+78 = 165 STEP2:165+561 = 726 STEP 阅读全文

posted @ 2019-08-10 09:48 乐逍遥xwl 阅读(402) 评论(0) 推荐(0) 编辑

2019年8月7日 #

单词接龙(dfs + 字符串处理)

摘要: 单词接龙 题目描述 单词接龙是一个与我们经常玩的成语接龙相类似的游戏,现在我们已知一组单词,且给定一个开头的字母,要求出以这个字母开头的最长的“龙”(每个单词都最多在“龙”中出现两次),在两个单词相连时,其重合部分合为一部分,例如beast和astonish,如果接成一条龙则变为beastonish 阅读全文

posted @ 2019-08-07 10:49 乐逍遥xwl 阅读(539) 评论(0) 推荐(0) 编辑

2019年8月5日 #

Codeforces Round #577 (Div. 2) C - Maximum Median

摘要: Codeforces Round #577 (Div. 2) 原文链接:https://www.cnblogs.com/xwl3109377858/p/11306077.html C - Maximum Median You are given an array a of n integers, w 阅读全文

posted @ 2019-08-05 22:36 乐逍遥xwl 阅读(362) 评论(0) 推荐(0) 编辑

Codeforces Round #577 (Div. 2) B - Zero Array

摘要: Codeforces Round #577 (Div. 2) B - Zero Array You are given an array a1,a2,…,an. In one operation you can choose two elements ai and aj (i≠j) and decr 阅读全文

posted @ 2019-08-05 22:24 乐逍遥xwl 阅读(503) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 ··· 24 下一页