这是 Codeforces Round #292 (Div. 2)的一道题,原题在这里,题意就是:
小明有n个男同学(编号为 0 ~ n-1)和m个女同学 (编号为 0 ~ m-1),小明要安排男女之间约会,如何安排约会呢,假设时间是i (i >=0) ,小明在 i 天就邀请 i % n 号男同学,和 i % m 号女同学约会,如果男女同学之间有一个是快乐的,那么两个人都是快乐的,那么问题来了,...
分类:
移动开发 时间:
2015-02-22 06:49:28
阅读次数:
244
B. Drazil and His Happy Friends
time limit per test2 seconds
memory limit per test256 megabytes
inputstandard input
outputstandard output
Drazil has many friends. Some of them are happy and some o...
分类:
移动开发 时间:
2015-02-20 16:22:34
阅读次数:
281
Happy Blog Life www.tipanfreeware.com
分类:
其他好文 时间:
2015-02-19 16:17:03
阅读次数:
159
time limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputDrazil has many friends. Some of them are happy ...
分类:
移动开发 时间:
2015-02-18 18:44:57
阅读次数:
245
题目链接:http://codeforces.com/problemset/problem/515/B题目意思:有 n 个 boy 和 m 个 girl,有 b 个 boy 和 g 个 girl (通过给出数组下标)是 happy的,规定每轮 dinner 中,派出编号为 i mod n 个男 和 ...
分类:
移动开发 时间:
2015-02-18 14:06:19
阅读次数:
211
B. Drazil and His Happy Friends
time limit per test
2 seconds
memory limit per test
256 megabytes
input
standard input
output
standard output
Drazil has many friends. So...
分类:
移动开发 时间:
2015-02-18 11:56:33
阅读次数:
129
DescriptionMatt has N friends. They are playing a game together.Each of Matt’s friends has a magic number. In the game, Matt selects some (could be ze...
分类:
移动开发 时间:
2015-02-17 17:41:00
阅读次数:
197
Fliptile
Time Limit: 2000MS
Memory Limit: 65536K
Total Submissions: 3810
Accepted: 1457
Description
Farmer John knows that an intellectually satisfied cow is a happy ...
分类:
其他好文 时间:
2015-02-09 16:02:14
阅读次数:
143
今天解决了一个新的bug,很是happy.bug提示必须声明标量:这个错误的原因是:ExecuteNoQuery里面没有写参数paras.这个代码给的警示是——要知其然,还要知其所以然。加油!——2015年2月1日
分类:
其他好文 时间:
2015-02-02 00:42:43
阅读次数:
158
uva 11636 Hello World!
When you first madethe computer to print the sentence
“Hello World!”, you felt so happy, not knowinghow complex and interesting the world of programming and algorithmwil...
分类:
其他好文 时间:
2015-01-31 12:38:34
阅读次数:
154