![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Codeforces
Seeyouer
这个作者很懒,什么都没留下…
展开
-
Codeforces Round #400 (Div. 1 + Div. 2, combined)D - The Door Problem(2-sat)
Problem Description Moriarty has trapped n people in n distinct rooms in a hotel. Some rooms are locked, others are unlocked. But, there is a condition that the people in the hotel can only es原创 2017-10-31 15:26:04 · 362 阅读 · 0 评论 -
Codeforces Round #402 (Div. 2) D. String Game
Problem Description Little Nastya has a hobby, she likes to remove some letters from word, to obtain another word. But it turns out to be pretty hard for her, because she is too young. Therefore, he原创 2017-10-24 15:33:18 · 294 阅读 · 0 评论 -
CF-777C Alyona and Spreadsheet
Problem Description During the lesson small girl Alyona works with one famous spreadsheet computer program and learns how to edit tables. Now she has a table filled with integers. The table con原创 2017-10-23 18:36:22 · 446 阅读 · 0 评论 -
codeforces 776E - The Holmes Children
Problem Description The Holmes children are fighting over who amongst them is the cleverest. Mycroft asked Sherlock and Eurus to find value of f(n), where f(1) = 1 and for n ≥ 2, f(n) is原创 2017-11-01 15:26:30 · 330 阅读 · 0 评论 -
CodeForces - 839C journey
Example Input 4 1 2 1 3 2 4 Output 1.500000000000000 Input 5 1 2 1 3 3 4 2 5 Output 2.000000000000000题意:输入点的个数N,然后输入N-1条边(无向),判断叶子的期望。 期望=概率*路径#include<io原创 2017-11-29 10:29:09 · 270 阅读 · 0 评论 -
codeforces-768B Code for 1
Jon fought bravely to rescue the wildlings who were attacked by the white-walkers at Hardhome. On his arrival, Sam tells him that he wants to go to Oldtown to train at the Citadel to become a maester,原创 2017-12-03 11:16:40 · 276 阅读 · 0 评论 -
CodeForces - 645C Enduring Exodus
In an attempt to escape the Mischievous Mess Makers’ antics, Farmer John has abandoned his farm and is traveling to the other side of Bovinia. During the journey, he and his k cows have decided to sta原创 2018-01-25 11:28:32 · 371 阅读 · 0 评论 -
Codeforces-68B Energy exchange
It is well known that the planet suffers from the energy crisis. Little Petya doesn’t like that and wants to save the world. For this purpose he needs every accumulator to contain the same amount of en原创 2018-01-20 21:02:16 · 556 阅读 · 0 评论