上一页 1 ··· 27 28 29 30 31 32 33 34 35 ··· 38 下一页
摘要: 看电视(区间贪心) 题目描述 暑假到了,小明终于可以开心的看电视了。但是小明喜欢的节目太多了,他希望尽量多的看到完整的节目。现在他把他喜欢的电视节目的转播时间表给你,你能帮他合理安排吗? 输入 输入包含多组测试数据。每组输入的第一行是一个整数n(n<=100),表示小明喜欢的节目的总数。接下来n行, 阅读全文
posted @ 2019-07-30 13:32 jiamian22 阅读(434) 评论(0) 推荐(0)
摘要: http://poj.org/problem?id=3658 Description The oppressively hot summer days have raised the cows' clamoring to its highest level. Farmer John has fina 阅读全文
posted @ 2019-07-30 11:01 jiamian22 阅读(119) 评论(0) 推荐(0)
摘要: POJ-3657 Haybale Guessing(二分答案+并查集) http://poj.org/problem?id=3657 下方有中文版,不想看英文的可直接点这里看中文版题目 Description The cows, who always have an inferiority comp 阅读全文
posted @ 2019-07-29 18:04 jiamian22 阅读(214) 评论(0) 推荐(0)
摘要: http://poj.org/problem?id=3659 Description Farmer John has decided to give each of his cows a cell phone in hopes to encourage their social interactio 阅读全文
posted @ 2019-07-29 10:52 jiamian22 阅读(165) 评论(0) 推荐(0)
摘要: POJ-3665 iCow(暴力) http://poj.org/problem?id=3665 题目描述 Fatigued by the endless toils of farming, Farmer John has decided to try his hand in the MP3 pla 阅读全文
posted @ 2019-07-29 03:15 jiamian22 阅读(256) 评论(0) 推荐(0)
摘要: 链接:https://ac.nowcoder.com/acm/contest/1069/I来源:牛客网 题目描述 现代数学的著名证明之一是Georg Cantor证明了有理数是可枚举的。他是用下面这一张表来证明这一命题的: 我们以Z字形给上表的每一项编号。第一项是1/1,然后是1/2,2/1,3/1 阅读全文
posted @ 2019-07-29 03:06 jiamian22 阅读(166) 评论(0) 推荐(0)
摘要: 幂次方(递归) 链接:https://ac.nowcoder.com/acm/contest/1069/L 题目描述 任何一个正整数都可以用2的幂次方表示。例如: 137=27+23+20 同时约定方次用括号来表示,即ab可表示为a(b)。 由此可知,137可表示为: 2(7)+2(3)+2(0) 阅读全文
posted @ 2019-07-29 03:01 jiamian22 阅读(1051) 评论(0) 推荐(0)
摘要: http://poj.org/problem?id=3660 Description N (1 ≤ N ≤ 100) cows, conveniently numbered 1..N, are participating in a programming contest. As we all kno 阅读全文
posted @ 2019-07-29 02:46 jiamian22 阅读(159) 评论(0) 推荐(0)
摘要: 链接:洛谷 POJ 题目描述 Farmer John wants to set up a telephone line at his farm. Unfortunately, the phone company is uncooperative, so he needs to pay for som 阅读全文
posted @ 2019-07-29 02:29 jiamian22 阅读(465) 评论(0) 推荐(0)
摘要: 题目描述 有两个长度都是N的序列A和B,在A和B中各取一个数相加可以得到N^2N2个和,求这N^2N2个和中最小的N个。 有两个长度都是N的序列A和B,在A和B中各取一个数相加可以得到N^2N2个和,求这N^2N2个和中最小的N个。 输入格式 第一行一个正整数N; 第二行N个整数A_iAi​, 满足 阅读全文
posted @ 2019-07-27 16:00 jiamian22 阅读(298) 评论(0) 推荐(0)
上一页 1 ··· 27 28 29 30 31 32 33 34 35 ··· 38 下一页