码迷,mamicode.com
首页 >  
搜索关键字:holidays    ( 31个结果
CodeForces 670 A. Holidays(模拟)
Description On the planet Mars a year lasts exactly n days (there are no leap years on Mars). But Martians have the same weeks as earthlings — 5 work ...
分类:其他好文   时间:2016-08-20 00:12:47    阅读次数:189
A. Holidays
题目链接: http://codeforces.com/problemset/problem/670/A Description On the planet Mars a year lasts exactly n days (there are no leap years on Mars). But ...
分类:其他好文   时间:2016-08-19 13:15:51    阅读次数:130
Codeforces Round #350 (Div. 2)
A. Holidays 题意:一个礼拜有两天放假,那么n天最多和最少分别有多少天假呢? 题解:首先算最少的,就是n%7,如果余6的话则要+1。最多则是尽量让余下的天数为假期,如果余一天就加一天,余二就加两天,大于二依然只加两天,直到余六再加一天。 代码: 1 /*A*/ 2 #include<cst ...
分类:其他好文   时间:2016-05-10 18:50:16    阅读次数:168
Codeforces Round #350 (Div. 2) 题解
Holidays Game of Robots Cinema Magic Powder - 12 Correct Bracket Sequence Editor Restore a Number Holidays#include using namespace std; #define For(i,n) for(int i=1;i<=n;i++) #define For...
分类:其他好文   时间:2016-05-07 06:58:00    阅读次数:256
2. 领导致辞-过节问候
DearCompanyEmployeesThewholeChinawillbeinthemodeofcelebrating“ChineseNewYear”holidaysstartingfromtomorrow,onbehalfofCompanymanagementteam,Iwouldliketothankyouallforyourhardworkingandyourcontributionstothecompany,andIalsowanttogivemyspecialthankstothosewho..
分类:其他好文   时间:2015-10-08 16:39:15    阅读次数:278
CF Gym 100187D Holidays
题意:给n个元素,从n中选两个非空集合A和B。问有多少中选法?以下错误示范:我推的O(n^2)神公式,公式正确,然并卵。递推就行了dp[n]表示元素个数为n的方案数,对于新来的一个元素,要么加入集合,要么不加入集合自成一个集合。加入集合有三种选择,A,B,E(全集 和 A和B的并 的差集,可空),或...
分类:其他好文   时间:2015-07-19 01:23:18    阅读次数:118
Codeforces Gym 100187D D. Holidays 排列组合
D. HolidaysTime Limit: 20 SecMemory Limit: 256 MB题目连接http://codeforces.com/gym/100187/problem/DDescriptionEveryone knows that the battle of Endor is j...
分类:其他好文   时间:2015-07-18 22:44:23    阅读次数:239
Please send me a card
原文 Postcards always spoil my holidays. Last summer, I went to Italy. I visited museums and sat in public gardens. A friendly waiter taught me a few words of Italian. Then he lent me a book. I rea...
分类:其他好文   时间:2015-06-26 13:38:54    阅读次数:84
May Day Holiday
As a university advocating self-learning and work-rest balance, Marjar University has so many days of rest, including holidays and weekends. Each weekend, which consists of Saturday and Sunday, is a...
分类:其他好文   时间:2015-04-26 12:31:14    阅读次数:201
浙江省赛2015 H.May Day Holiday
As a university advocating self-learning and work-rest balance, Marjar University has so many days of rest, including holidays and weekends. Each weekend, which consists of Saturday and Sunday, is a...
分类:其他好文   时间:2015-04-25 19:51:48    阅读次数:150
31条   上一页 1 2 3 4 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!