
codeforces
__铭
这个作者很懒,什么都没留下…
展开
-
Codeforces Educational Codeforces Round 8 A. Tennis Tournament
大致题意:网球比赛,n个参赛者,每场比赛每位选手b瓶水+裁判1瓶水,全部比赛每个参赛者p条毛巾每一轮比赛有2^k个人参加比赛(k为2^k求所有比赛完成后所需要的水的数量和毛巾的数量原创 2016-02-20 09:48:04 · 566 阅读 · 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 · 422 阅读 · 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 · 472 阅读 · 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 · 473 阅读 · 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 · 712 阅读 · 0 评论 -
Codeforces Round #343 (Div. 2) B. Far Relative’s Problem
B. Far Relative’s Problemtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputFamil Door wants to celebrate his原创 2016-02-21 14:11:50 · 661 阅读 · 0 评论 -
Codeforces Round #343 (Div. 2) Far Relative’s Birthday Cake
大致题意:给出一个n*n的矩阵,求有多少对C在同一行或同一列方法:遍历每一行,求出每一行中C的数量,然后利用组合数学的排列组合求出方案数遍历每一列,同上。。。。。A. Far Relative’s Birthday Caketime limit per test1 secondmemory limit per test256 mega原创 2016-02-21 09:44:44 · 688 阅读 · 0 评论 -
CodeForces Experimental Educational Round: VolBIT Formulas Blitz A. Again Twenty Five!
A. Again Twenty Five!time limit per test0.5 secondsmemory limit per test64 megabytesinputstandard inputoutputstandard outputThe HR manager was disappointed agai原创 2016-02-19 09:08:11 · 580 阅读 · 0 评论 -
Codeforces Experimental Educational Round: VolBIT Formulas Blitz D. Hexagons!
D. Hexagons!time limit per test0.5 secondsmemory limit per test64 megabytesinputstandard inputoutputstandard outputAfter a probationary period in the game devel原创 2016-02-19 10:36:29 · 537 阅读 · 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 · 707 阅读 · 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 · 339 阅读 · 0 评论