![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
codeforces
__铭
这个作者很懒,什么都没留下…
展开
-
Codeforces Educational Codeforces Round 8 A. Tennis Tournament
大致题意: 网球比赛,n个参赛者,每场比赛每位选手b瓶水+裁判1瓶水,全部比赛每个参赛者p条毛巾 每一轮比赛有2^k个人参加比赛(k为2^k 求所有比赛完成后所需要的水的数量和毛巾的数量原创 2016-02-20 09:48:04 · 539 阅读 · 0 评论 -
Codeforces Round #303 Equidistant String
Little Susie loves strings. Today she calculates distances between them. As Susie is a small girl after all, her strings contain only digits zero and one. She uses the definition of Hamming distance:原创 2015-08-09 20:24:10 · 402 阅读 · 0 评论 -
Codeforces445A DZY Loves Chessboard
DZY loves chessboard, and he enjoys playing with it. He has a chessboard of n rows and m columns. Some cells of the chessboard are bad, others are good. For every good cell, DZY wants to put a ches原创 2015-08-09 20:26:04 · 444 阅读 · 0 评论 -
CodeForces 445B DZY Loves Chemistry(并查集)
DZY loves chemistry, and he enjoys mixing chemicals. DZY has n chemicals, and m pairs of them will react. He wants to pour these chemicals into a test tube, and he needs to pour them in one by one,原创 2015-08-09 20:28:01 · 428 阅读 · 0 评论 -
Codeforces Round #345 (Div. 2) C. Watchmen
题目链接:http://codeforces.com/contest/651/problem/C 题目大意:给出n个坐标,求存在(xi,yi),(xj, yj) 使|xi-xj|+|yi-yj| = sqrt((xi-xj)*(xi-xj)+(yi-yj)*(yi-yj))的组数 方法:等式两边平方,化简得只要两个点存在同一列或同一行就可以符合上述等式 #include using na原创 2016-03-08 19:54:00 · 493 阅读 · 0 评论 -
Codeforces Round #343 (Div. 2) B. Far Relative’s Problem
B. Far Relative’s Problem time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Famil Door wants to celebrate his原创 2016-02-21 14:11:50 · 610 阅读 · 0 评论 -
Codeforces Round #343 (Div. 2) Far Relative’s Birthday Cake
大致题意: 给出一个n*n的矩阵,求有多少对C在同一行或同一列 方法: 遍历每一行,求出每一行中C的数量,然后利用组合数学的排列组合求出方案数 遍历每一列,同上 。。。。。 A. Far Relative’s Birthday Cake time limit per test 1 second memory limit per test 256 mega原创 2016-02-21 09:44:44 · 642 阅读 · 0 评论 -
CodeForces Experimental Educational Round: VolBIT Formulas Blitz A. Again Twenty Five!
A. Again Twenty Five! time limit per test 0.5 seconds memory limit per test 64 megabytes input standard input output standard output The HR manager was disappointed agai原创 2016-02-19 09:08:11 · 505 阅读 · 0 评论 -
Codeforces Experimental Educational Round: VolBIT Formulas Blitz D. Hexagons!
D. Hexagons! time limit per test 0.5 seconds memory limit per test 64 megabytes input standard input output standard output After a probationary period in the game devel原创 2016-02-19 10:36:29 · 473 阅读 · 0 评论 -
Codeforces Educational Codeforces Round 8 B. New Skateboard
大致题意: 给出一串数,从中找出连续的字串,求能够整除4的字串的个数 方法: 从后往前遍历 如果一个数的后两位能被4整除,则这个数就是4的倍数 #include using namespace std; char str[10000000]; int main() { while(~scanf("%s",str)) { long long ant原创 2016-02-20 11:16:09 · 671 阅读 · 0 评论 -
Codeforces Round #303 A. Toy Cars
Little Susie, thanks to her older brother, likes to play with cars. Today she decided to set up a tournament between them. The process of a tournament is described in the next paragraph. There are n原创 2015-08-09 20:22:22 · 316 阅读 · 0 评论