Solutions are presented as using the least memory and the fastest execution time. It also takes the top 10 most recent solutions from each language. If you want to limit to a specific index, click the "Solved" button and go to that problem.
ContestId |
Name |
Phase |
Frozen |
Duration (Seconds) |
Relative Time |
Start Time |
---|---|---|---|---|---|---|
1045 | Bubble Cup 11 - Finals [Online Mirror, Div. 1] | FINISHED | False | 18000 | 200517893 | Sept. 22, 2018, 10:35 a.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 720 ) | D | Interstellar battle | PROGRAMMING | math probabilities trees | 2600 |
B'In the intergalactic empire Bubbledom there are N planets, of which some pairs are directly connected by two-way wormholes. There are N-1 wormholes. The wormholes are of extreme religious importance in Bubbledom, a set of planets in Bubbledom consider themselves one intergalactic kingdom if and only if any two planets in the set can reach each other by traversing the wormholes. You are given that Bubbledom is one kingdom. In other words, the network of planets and wormholes is a tree. However, Bubbledom is facing a powerful enemy also possessing teleportation technology. The enemy attacks every night, and the government of Bubbledom retakes all the planets during the day. In a single attack, the enemy attacks every planet of Bubbledom at once, but some planets are more resilient than others. Planets are number 0,1, xe2 x80 xa6,N-1 and the planet i will fall with probability p_i . Before every night (including the very first one), the government reinforces or weakens the defenses of a single planet. The government of Bubbledom is interested in the following question: what is the expected number of intergalactic kingdoms Bubbledom will be split into, after a single enemy attack (before they get a chance to rebuild)? In other words, you need to print the expected number of connected components after every attack. The first line contains one integer number N ( 1 <= N <= 10^5 ) denoting the number of planets in Bubbledom (numbered from 0 to N-1 ). The next line contains N different real numbers in the interval [0,1] , specified with 2 digits after the decimal point, denoting the probabilities that the corresponding planet will fall. The next N-1 lines contain all the wormholes in Bubbledom, where a wormhole is specified by the two planets it connects. The next line contains a positive integer Q ( 1 <= Q <= 10^5 ), denoting the number of enemy attacks. The next Q lines each contain a '... |
E |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
43285273 | test616.cpp | D | Sept. 23, 2018, 7:58 a.m. | OK | GNU C++11 | TESTS | 100 | 93 | 5529600 | 2600 | |
44751550 | ReaLNero1 | D | Oct. 23, 2018, 8:13 p.m. | OK | GNU C++11 | TESTS | 100 | 124 | 6451200 | 2600 | |
43252057 | gamegame | D | Sept. 22, 2018, 12:35 p.m. | OK | GNU C++11 | TESTS | 100 | 124 | 6451200 | 2600 | |
43253053 | cuizhuyefei _Cwystc_Killer_ Panole233 | D | Sept. 22, 2018, 12:49 p.m. | OK | GNU C++11 | TESTS | 100 | 124 | 6758400 | 2600 | |
53894101 | shaojianan | D | May 9, 2019, 4:02 a.m. | OK | GNU C++11 | TESTS | 100 | 155 | 3993600 | 2600 | |
46653066 | luogu_bot2 | D | Dec. 5, 2018, 2:55 p.m. | OK | GNU C++11 | TESTS | 100 | 155 | 3993600 | 2600 | |
44285502 | luogu_bot2 | D | Oct. 14, 2018, 7:15 a.m. | OK | GNU C++11 | TESTS | 100 | 156 | 2662400 | 2600 | |
54789136 | tyler178 | D | May 29, 2019, 6:09 a.m. | OK | GNU C++11 | TESTS | 100 | 156 | 3993600 | 2600 | |
53894139 | shaojianan | D | May 9, 2019, 4:04 a.m. | OK | GNU C++11 | TESTS | 100 | 156 | 3993600 | 2600 | |
53834433 | EncodeTalker | D | May 7, 2019, 12:50 a.m. | OK | GNU C++11 | TESTS | 100 | 156 | 3993600 | 2600 | |
50042650 | H4XeO6 | D | Feb. 17, 2019, 3:23 a.m. | OK | GNU C++14 | TESTS | 100 | 187 | 4403200 | 2600 | |
43277046 | ecnerwala | D | Sept. 23, 2018, 12:38 a.m. | OK | GNU C++14 | TESTS | 100 | 202 | 4710400 | 2600 | |
44575213 | polequoll | D | Oct. 20, 2018, 6:47 a.m. | OK | GNU C++14 | TESTS | 100 | 217 | 41779200 | 2600 | |
43290144 | kr_abhinav | D | Sept. 23, 2018, 10:21 a.m. | OK | GNU C++14 | TESTS | 100 | 265 | 6963200 | 2600 | |
43822063 | black_horse2014 kutengine ksi1996 | D | Oct. 5, 2018, 9:42 a.m. | OK | GNU C++14 | TESTS | 100 | 265 | 14028800 | 2600 | |
43248880 | Zhukov_Dmitry | D | Sept. 22, 2018, 11:55 a.m. | OK | GNU C++14 | TESTS | 100 | 280 | 18739200 | 2600 | |
68481516 | vjudge2 | D | Jan. 10, 2020, 7:57 a.m. | OK | GNU C++14 | TESTS | 100 | 311 | 3993600 | 2600 | |
46752662 | zjhqg2005 | D | Dec. 8, 2018, 9:59 a.m. | OK | GNU C++14 | TESTS | 100 | 342 | 5222400 | 2600 | |
44063088 | litianfeng | D | Oct. 10, 2018, 7:23 a.m. | OK | GNU C++14 | TESTS | 100 | 342 | 5222400 | 2600 | |
49983262 | vjudge2 | D | Feb. 16, 2019, 9:18 a.m. | OK | GNU C++14 | TESTS | 100 | 343 | 5222400 | 2600 | |
43649858 | kulpet345 353cerega kvk1920 | D | Oct. 1, 2018, 3:14 p.m. | OK | GNU C++17 | TESTS | 100 | 155 | 11366400 | 2600 | |
44539624 | Sealionheart Tima | D | Oct. 19, 2018, 10:48 a.m. | OK | GNU C++17 | TESTS | 100 | 249 | 7270400 | 2600 | |
43254540 | xtalclr nong ko_osaga | D | Sept. 22, 2018, 1:10 p.m. | OK | GNU C++17 | TESTS | 100 | 264 | 5222400 | 2600 | |
43251490 | LHiC | D | Sept. 22, 2018, 12:27 p.m. | OK | GNU C++17 | TESTS | 100 | 296 | 8294400 | 2600 | |
54448776 | frteen | D | May 21, 2019, 12:35 p.m. | OK | GNU C++17 | TESTS | 100 | 327 | 5222400 | 2600 | |
43251745 | SYury | D | Sept. 22, 2018, 12:30 p.m. | OK | GNU C++17 | TESTS | 100 | 327 | 8806400 | 2600 | |
59856388 | luogu_bot4 | D | Sept. 1, 2019, 1:43 p.m. | OK | GNU C++17 | TESTS | 100 | 342 | 6451200 | 2600 | |
66762225 | BrendanOh | D | Dec. 13, 2019, 6:54 a.m. | OK | GNU C++17 | TESTS | 100 | 343 | 5222400 | 2600 | |
62352122 | hjk1030 | D | Oct. 11, 2019, 9:41 a.m. | OK | GNU C++17 | TESTS | 100 | 343 | 5222400 | 2600 | |
50729459 | Dup4 | D | March 3, 2019, 10:51 a.m. | OK | GNU C++17 | TESTS | 100 | 343 | 5222400 | 2600 | |
47536781 | I_love_Harpae | D | Dec. 27, 2018, 2:57 a.m. | OK | Java 8 | TESTS | 100 | 358 | 17817600 | 2600 | |
57962265 | SpargelTarzan | D | July 30, 2019, 12:17 a.m. | OK | Java 8 | TESTS | 100 | 452 | 19353600 | 2600 | |
47381709 | BiIIy | D | Dec. 22, 2018, 10:06 p.m. | OK | Java 8 | TESTS | 100 | 468 | 8499200 | 2600 | |
47380896 | jenish9599 | D | Dec. 22, 2018, 9:06 p.m. | OK | Java 8 | TESTS | 100 | 498 | 17510400 | 2600 | |
67561366 | bking11 | D | Dec. 24, 2019, 5:40 p.m. | OK | Java 8 | TESTS | 100 | 498 | 18739200 | 2600 | |
43256468 | uwi | D | Sept. 22, 2018, 1:39 p.m. | OK | Java 8 | TESTS | 100 | 779 | 0 | 2600 | |
48475451 | barakraganosungam | D | Jan. 17, 2019, 2:05 a.m. | OK | Java 8 | TESTS | 100 | 888 | 35635200 | 2600 | |
43711472 | vjudge3 | D | Oct. 3, 2018, 4:01 a.m. | OK | MS C++ | TESTS | 100 | 342 | 9625600 | 2600 | |
56555068 | vjudge1 | D | July 5, 2019, 11:57 a.m. | OK | MS C++ | TESTS | 100 | 389 | 3993600 | 2600 | |
56561042 | vjudge5 | D | July 5, 2019, 2:59 p.m. | OK | MS C++ | TESTS | 100 | 483 | 32051200 | 2600 |
Back to search problems