随笔分类 -  贪心

上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 20 下一页
摘要:time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output There are n pearls in a row. Let’s e... 阅读全文
posted @ 2017-10-06 19:22 AWCXV 阅读(119) 评论(0) 推荐(0)
摘要:time limit per test5 seconds memory limit per test256 megabytes inputstandard input outputstandard output Berland amusement park shooting gall... 阅读全文
posted @ 2017-10-06 19:22 AWCXV 阅读(173) 评论(0) 推荐(0)
摘要:time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output You are given a rebus of form ? + ? -... 阅读全文
posted @ 2017-10-06 19:22 AWCXV 阅读(231) 评论(0) 推荐(0)
摘要:time limit per test3 seconds memory limit per test256 megabytes inputstandard input outputstandard output One tradition of ACM-ICPC contests i... 阅读全文
posted @ 2017-10-06 19:22 AWCXV 阅读(141) 评论(0) 推荐(0)
摘要:time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output It was recycling day in Kekoland. To... 阅读全文
posted @ 2017-10-06 19:22 AWCXV 阅读(269) 评论(0) 推荐(0)
摘要:time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output Vasya commutes by train every day. T... 阅读全文
posted @ 2017-10-06 19:22 AWCXV 阅读(174) 评论(0) 推荐(0)
摘要:time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output The ICM ACPC World Finals is coming!... 阅读全文
posted @ 2017-10-06 19:22 AWCXV 阅读(146) 评论(0) 推荐(0)
摘要:time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output Vasiliy spent his vacation in a sanat... 阅读全文
posted @ 2017-10-06 19:22 AWCXV 阅读(81) 评论(0) 推荐(0)
摘要:time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output Recently a dog was bought for Polycar... 阅读全文
posted @ 2017-10-06 19:22 AWCXV 阅读(96) 评论(0) 推荐(0)
摘要:time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output Little Vlad is fond of popular comput... 阅读全文
posted @ 2017-10-06 19:22 AWCXV 阅读(92) 评论(0) 推荐(0)
摘要:time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output The programming competition season ha... 阅读全文
posted @ 2017-10-06 19:22 AWCXV 阅读(122) 评论(0) 推荐(0)
摘要:time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output A tree is an undirected connected gr... 阅读全文
posted @ 2017-10-06 19:22 AWCXV 阅读(265) 评论(0) 推荐(1)
摘要:time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output You are given a string s, consisting... 阅读全文
posted @ 2017-10-06 19:22 AWCXV 阅读(99) 评论(0) 推荐(0)
摘要:Time Limit: 1 second Memory Limit: 128 MB【问题描述】有N个人要参加国际象棋比赛,该比赛要进行K场对弈。每个人最多参加2场对弈,最少参加0场对弈。每个人都有一个与其他人都不 相同的等级(用一个正整数来表示)。在对弈中,等级高的人必须用黑色的棋子... 阅读全文
posted @ 2017-10-04 18:45 AWCXV 阅读(202) 评论(0) 推荐(0)
摘要:问题描述 一个旅行家想驾驶汽车以最少的费用从一个城市到另一个城市(假设出发时油箱是空的)。给定两个城市之间的距离D1、汽车油箱的容量C(以升为单位).每升汽油能行驶的距离D2、出发点每升汽油价格P和沿途油站数N(N可以为零),油站i离出发点的距离Di、每升汽油价格 Pi(i=l,2,... 阅读全文
posted @ 2017-10-04 18:45 AWCXV 阅读(145) 评论(0) 推荐(0)
摘要:Time Limit: 1 second Memory Limit: 32 MB【问题描述】一个正整数一般可以分为几个互不相同的自然数的,如3=1+2,4=1+3,5=1+4=2+3,6=1+5=2+4,…。现在你的任务是将指定的正整数n分解成若干个互不相同的自然数的和,且使这些自然... 阅读全文
posted @ 2017-10-04 18:45 AWCXV 阅读(129) 评论(0) 推荐(0)
摘要:time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output Due to the increase in the number of... 阅读全文
posted @ 2017-10-04 18:45 AWCXV 阅读(131) 评论(0) 推荐(0)
摘要:描述 风景迷人的小城Y市,拥有n个美丽的景点。由于慕名而来的游客越来越多,Y市特意安排了一辆观光公交车,为游客提供更便捷的交通服务。观光公交车在第0分钟出现在1号景点,随后依次前往2、3、4……n号景点。从第i号景点开到第i+1号景点需要Di分钟。任意时刻,公交车只能往前开,或在景点... 阅读全文
posted @ 2017-10-04 18:45 AWCXV 阅读(138) 评论(0) 推荐(0)
摘要:time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output Pavel cooks barbecue. There are n sk... 阅读全文
posted @ 2017-10-04 18:45 AWCXV 阅读(159) 评论(0) 推荐(0)
摘要:time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output In Berland it is the holiday of equal... 阅读全文
posted @ 2017-10-04 18:45 AWCXV 阅读(194) 评论(0) 推荐(0)

上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 20 下一页