上一页 1 ··· 5 6 7 8 9 10 下一页
摘要: 题目:Meteor Shower S 网址:https://www.luogu.com.cn/problem/P2895 Bessie hears that an extraordinary meteor shower is coming; reports say that these meteor 阅读全文
posted @ 2020-05-01 18:24 大秦帝国 阅读(218) 评论(0) 推荐(0)
摘要: 题目:奇怪的电梯 网址:https://www.luogu.com.cn/problem/P1135 题目描述 呵呵,有一天我做了一个梦,梦见了一种很奇怪的电梯。大楼的每一层楼都可以停电梯,而且第i层楼(1≤i≤N)上有一个数字Ki(0≤Ki≤N)。 电梯只有四个按钮:开,关,上,下。 上下的层数等 阅读全文
posted @ 2020-05-01 18:07 大秦帝国 阅读(252) 评论(0) 推荐(0)
摘要: 伫倚危楼风细细,望极春愁,黯黯生天际。草色烟光残照里,无言谁会凭阑意。 拟把疏狂图一醉,对酒当歌,强乐还无味。衣带渐宽终不悔,为伊消得人憔悴。——柳永 题目:倒水问题 网址:https://onlinejudge.org/index.php?option=com_onlinejudge&Itemid 阅读全文
posted @ 2020-04-30 19:37 大秦帝国 阅读(143) 评论(0) 推荐(0)
摘要: 渭城朝雨浥轻尘,客舍青青柳色新。 劝君更尽一杯酒,西出阳关无故人。——王维 A. Ichihime and Triangle 网址:https://codeforces.com/contest/1337/problem/A Ichihime is the current priestess of t 阅读全文
posted @ 2020-04-27 22:50 大秦帝国 阅读(279) 评论(0) 推荐(0)
摘要: 松下问童子,言师采药去。 只在此山中,云深不知处。——贾岛 题目:魔板 Magic Squares 网址:https://www.luogu.com.cn/problem/P2730 这是一张有8个大小相同的格子的魔板: 1 2 3 4 8 7 6 5 题目描述 我们知道魔板的每一个方格都有一种颜色 阅读全文
posted @ 2020-04-23 22:37 大秦帝国 阅读(288) 评论(0) 推荐(0)
摘要: 空山新雨后,天气晚来秋。 明月松间照,清泉石上流。 竹喧归浣女,莲动下渔舟。 随意春芳歇,王孙自可留。——王维 A. Little Artem 网址:https://codeforces.com/contest/1333/problem/A Young boy Artem tries to pain 阅读全文
posted @ 2020-04-15 11:23 大秦帝国 阅读(200) 评论(0) 推荐(0)
摘要: 飞来山上千寻塔,闻说鸡鸣见日升。 不畏浮云遮望眼,自缘身在最高层。——王安石 题目:Booksort 网址:http://poj.org/problem?id=3460 Description The Leiden University Library has millions of books. 阅读全文
posted @ 2020-04-11 22:21 大秦帝国 阅读(120) 评论(0) 推荐(0)
摘要: 槛菊愁烟兰泣露,罗幕轻寒,燕子双飞去。明月不谙离别苦,斜光到晓穿朱户。 昨夜西风凋碧树,独上高楼,望尽天涯路。欲寄彩笺兼尺素,山长水阔知何处?——晏殊 题目:The Rotation Game 网址:http://poj.org/problem?id=2286 The rotation game u 阅读全文
posted @ 2020-04-09 22:51 大秦帝国 阅读(169) 评论(0) 推荐(0)
摘要: 胜败兵家事不期,包羞忍耻是男儿。 江东子弟多才俊,卷土重来未可知。——杜牧 基本的广搜适用于无权图求最短路,若为带权图,那么普通广搜就不能使用了。 于是,我们有以下几种做法:其中,优先队列bfs最常见,可以和估价函数提高效率。 一、双端队列广搜 如果遍历的图的边权为1或0,可以使用双端队列广搜; 具 阅读全文
posted @ 2020-04-06 18:03 大秦帝国 阅读(122) 评论(0) 推荐(0)
摘要: 人闲桂花落,夜静春山空。 月出惊山鸟,时鸣春涧中。——王维 A. EhAb AnD gCd You are given a positive integer x. Find any such 2 positive integers a and b such that GCD(a,b)+LCM(a,b 阅读全文
posted @ 2020-04-04 22:01 大秦帝国 阅读(181) 评论(0) 推荐(0)
上一页 1 ··· 5 6 7 8 9 10 下一页