上一页 1 2 3 4 5 6 7 8 9 10 ··· 13 下一页
摘要: Description Student Andrey has been skipping physical education lessons for the whole term, and now he must somehow get a passing grade on this subjec 阅读全文
posted @ 2018-10-07 21:01 Daybreaking 阅读(567) 评论(0) 推荐(0)
摘要: Description Today an outstanding event is going to happen in the forest — hedgehog Filya will come to his old fried Sonya! Sonya is an owl and she sle 阅读全文
posted @ 2018-10-07 20:50 Daybreaking 阅读(272) 评论(0) 推荐(0)
摘要: 母函数,又称生成函数。 母函数就是一列用来展示一串数字的挂衣架。 ——赫伯特·唯尔夫 。 母函数问题一般是,对于一个问题,抽象出一个生成函数。 以换硬币问题为例,有一元的,四元的,九元的........硬币无数个,问y元钱有几种组合方式。 设一个数的指数为y(组成y元钱),系数为有几种组合方式,开始 阅读全文
posted @ 2018-10-06 10:45 Daybreaking 阅读(203) 评论(0) 推荐(0)
摘要: On the way to school, Karen became fixated on the puzzle game on her phone! The game is played as follows. In each level, you have a grid with n rows 阅读全文
posted @ 2018-10-06 10:08 Daybreaking 阅读(280) 评论(0) 推荐(0)
摘要: To stay woke and attentive during classes, Karen needs some coffee! Karen, a coffee aficionado, wants to know the optimal temperature for brewing the 阅读全文
posted @ 2018-10-06 09:42 Daybreaking 阅读(258) 评论(0) 推荐(0)
摘要: Long story short, shashlik is Miroslav's favorite food. Shashlik is prepared on several skewers simultaneously. There are two states for each skewer: 阅读全文
posted @ 2018-10-05 11:22 Daybreaking 阅读(337) 评论(0) 推荐(0)
摘要: You are given a ternary string (it is a string which consists only of characters '0', '1' and '2'). You can swap any two adjacent (consecutive) charac 阅读全文
posted @ 2018-10-04 11:25 Daybreaking 阅读(278) 评论(0) 推荐(0)
摘要: You are given an array of integers. Vasya can permute (change order) its integers. He wants to do it so that as many as possible integers will become 阅读全文
posted @ 2018-10-04 09:30 Daybreaking 阅读(242) 评论(0) 推荐(0)
摘要: Berland shop sells nn kinds of juices. Each juice has its price cici. Each juice includes some set of vitamins in it. There are three types of vitamin 阅读全文
posted @ 2018-10-03 17:36 Daybreaking 阅读(360) 评论(0) 推荐(0)
摘要: Description 农民约翰有三个容量分别是A,B,C升的桶,A,B,C分别是三个从1到20的整数,最初,A和B桶都是空的,而C桶是装满牛奶的。有时,约翰把牛奶从一个桶倒到另一个桶中,直到被灌桶装满或原桶空了。当然每一次灌注都是完全的。由于节约,牛奶不会有丢失。 写一个程序去帮助约翰找出当A桶是 阅读全文
posted @ 2018-09-28 21:55 Daybreaking 阅读(350) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 10 ··· 13 下一页