Codeforces Round 265 (Div. 1)

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
464 Codeforces Round 265 (Div. 1) FINISHED False 7200 327421824 Sept. 7, 2014, 3:30 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 675 ) D World of Darkraft - 2 PROGRAMMING dp probabilities 2600

B'Roma found a new character in the game "World of Darkraft - 2". In this game the character fights monsters, finds the more and more advanced stuff that lets him fight stronger monsters. The character can equip himself with k distinct types of items. Power of each item depends on its level (positive integer number). Initially the character has one 1-level item of each of the k types. After the victory over the monster the character finds exactly one new randomly generated item. The generation process looks as follows. Firstly the type of the item is defined; each of the k types has the same probability. Then the level of the new item is defined. Let 's assume that the level of player 's item of the chosen type is equal to t at the moment. Level of the new item will be chosen uniformly among integers from segment [1; t xe2 x80 x89+ xe2 x80 x891]. From the new item and the current player 's item of the same type Roma chooses the best one (i.e. the one with greater level) and equips it (if both of them has the same level Roma choses any). The remaining item is sold for coins. Roma sells an item of level x of any type for x coins. Help Roma determine the expected number of earned coins after the victory over n monsters. The first line contains two integers, n and k (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89105; 1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89k xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89100). Print a real number -- expected number of earned coins after victory over n monsters. The answer is considered correct if its relative or absolute error doesn 't exceed 10 xe2 x80 x89- xe2 x80 x899.'...

Tutorials

Codeforces Round #265 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
7711208 hos.lyric D Sept. 7, 2014, 5:02 p.m. OK D TESTS 40 608 1536000 2600
8033287 yosupo D Sept. 30, 2014, 7:25 a.m. OK D TESTS 39 1263 102400 2600
17272932 ligerre D April 11, 2016, 2:07 a.m. OK FPC TESTS 39 1513 102400 2600
29318327 BobHuang D Aug. 10, 2017, 5:40 a.m. OK GNU C TESTS 39 1388 1945600 2600
7729746 guille D Sept. 9, 2014, 4:27 p.m. OK GNU C++ TESTS 40 140 307200 2600
23512470 Ali.Pi D Jan. 3, 2017, 8:22 a.m. OK GNU C++ TESTS 39 171 1945600 2600
8541518 KrK D Nov. 3, 2014, 11:04 p.m. OK GNU C++ TESTS 39 187 0 2600
7816264 nwi D Sept. 17, 2014, 9:21 a.m. OK GNU C++ TESTS 39 217 0 2600
16688528 vjudge2 D March 13, 2016, 8:55 a.m. OK GNU C++ TESTS 39 218 614400 2600
16688205 mayf3 D March 13, 2016, 8:39 a.m. OK GNU C++ TESTS 39 218 614400 2600
11103417 shaojiepao D May 15, 2015, 3:02 a.m. OK GNU C++ TESTS 39 265 0 2600
35668377 langsike D Feb. 25, 2018, 5:06 a.m. OK GNU C++ TESTS 39 296 2150400 2600
25372446 vjudge5 D March 10, 2017, 4:06 a.m. OK GNU C++ TESTS 39 312 2048000 2600
41828934 Ebola_Emperor D Aug. 19, 2018, 1:36 p.m. OK GNU C++ TESTS 39 327 0 2600
7714718 KADR D Sept. 7, 2014, 6:42 p.m. OK GNU C++0x TESTS 40 202 0 2600
7811810 pshevchuk D Sept. 16, 2014, 5:02 p.m. OK GNU C++0x TESTS 40 280 0 2600
7910751 gustav D Sept. 22, 2014, 1:52 p.m. OK GNU C++0x TESTS 39 327 0 2600
7811699 pshevchuk D Sept. 16, 2014, 4:49 p.m. OK GNU C++0x TESTS 40 327 0 2600
7738821 sune2 D Sept. 11, 2014, 3:58 a.m. OK GNU C++0x TESTS 40 327 0 2600
8181115 omochan D Oct. 12, 2014, 8:22 a.m. OK GNU C++0x TESTS 39 343 0 2600
7824845 Rivx D Sept. 18, 2014, 10:24 a.m. OK GNU C++0x TESTS 39 358 0 2600
7811708 pshevchuk D Sept. 16, 2014, 4:49 p.m. OK GNU C++0x TESTS 40 358 0 2600
7735073 kittylover D Sept. 10, 2014, 1 p.m. OK GNU C++0x TESTS 40 358 0 2600
7751943 Payne D Sept. 12, 2014, 1:22 p.m. OK GNU C++0x TESTS 40 374 0 2600
66682454 chasedeath D Dec. 12, 2019, 1:37 p.m. OK GNU C++11 TESTS 39 61 819200 2600
57437634 pufanyi D July 21, 2019, 5:40 a.m. OK GNU C++11 TESTS 39 93 0 2600
58991185 WZP2018 D Aug. 18, 2019, 9:18 a.m. OK GNU C++11 TESTS 39 140 0 2600
58991164 luogu_bot3 D Aug. 18, 2019, 9:17 a.m. OK GNU C++11 TESTS 39 140 0 2600
44441935 lijiamu D Oct. 17, 2018, 12:29 p.m. OK GNU C++11 TESTS 39 155 0 2600
58990693 luogu_bot2 D Aug. 18, 2019, 9:06 a.m. OK GNU C++11 TESTS 39 171 0 2600
58986436 luogu_bot2 D Aug. 18, 2019, 7:18 a.m. OK GNU C++11 TESTS 39 171 0 2600
58389968 lyzqs D Aug. 6, 2019, 1:20 p.m. OK GNU C++11 TESTS 39 171 0 2600
51976118 ILoLy D March 29, 2019, 2:22 p.m. OK GNU C++11 TESTS 39 171 0 2600
61108888 dyxg D Sept. 23, 2019, 10:28 a.m. OK GNU C++11 TESTS 39 187 0 2600
31474197 FallDream D Oct. 18, 2017, 8:53 a.m. OK GNU C++14 TESTS 39 140 1945600 2600
40988029 ReaLNero1 D July 30, 2018, 9:41 p.m. OK GNU C++14 TESTS 39 155 0 2600
55116721 vjudge3 D June 5, 2019, 9 a.m. OK GNU C++14 TESTS 39 171 0 2600
44992522 dasinlsb D Oct. 28, 2018, 1:39 p.m. OK GNU C++14 TESTS 39 186 0 2600
59814136 stefanbalaz2 D Aug. 31, 2019, 2:39 p.m. OK GNU C++14 TESTS 39 187 0 2600
53874879 NotNight D May 8, 2019, 11:29 a.m. OK GNU C++14 TESTS 39 187 0 2600
55116427 vjudge1 D June 5, 2019, 8:52 a.m. OK GNU C++14 TESTS 39 202 307200 2600
69708139 xzt_2 D Jan. 29, 2020, 5:46 a.m. OK GNU C++14 TESTS 39 218 0 2600
34213896 lyx_cjz D Jan. 16, 2018, 6:21 a.m. OK GNU C++14 TESTS 39 265 1945600 2600
47281090 transs D Dec. 20, 2018, 12:57 a.m. OK GNU C++14 TESTS 39 343 0 2600
61972801 hjk1030 D Oct. 6, 2019, 9:34 a.m. OK GNU C++17 TESTS 39 171 0 2600
60175252 ruo D Sept. 6, 2019, 2:11 p.m. OK GNU C++17 TESTS 39 171 0 2600
55116862 vjudge5 D June 5, 2019, 9:04 a.m. OK GNU C++17 TESTS 39 171 0 2600
55116658 somuch D June 5, 2019, 8:58 a.m. OK GNU C++17 TESTS 39 171 0 2600
51553393 vjudge1 D March 20, 2019, 2:50 a.m. OK GNU C++17 TESTS 39 280 0 2600
62171897 Ari D Oct. 9, 2019, 1:33 a.m. OK GNU C++17 TESTS 39 296 0 2600
55555465 ccsu_cat_love_jiejie D June 14, 2019, 9:39 a.m. OK GNU C++17 TESTS 39 327 0 2600
55513997 vjudge2 D June 13, 2019, 3:23 a.m. OK GNU C++17 TESTS 39 327 0 2600
40378621 ezoilearner D July 15, 2018, 12:36 p.m. OK GNU C++17 TESTS 39 327 0 2600
66276576 vjudge3 D Dec. 4, 2019, 2:54 p.m. OK GNU C++17 TESTS 39 405 0 2600
8121465 teetora D Oct. 6, 2014, 6:13 p.m. OK Java 7 TESTS 39 654 0 2600
7718030 uwi D Sept. 8, 2014, 4:32 a.m. OK Java 7 TESTS 40 1091 0 2600
7732896 dnk D Sept. 10, 2014, 6:59 a.m. OK Java 7 TESTS 40 1138 0 2600
10217438 Yukii D March 9, 2015, 12:34 p.m. OK Java 7 TESTS 39 1216 0 2600
10217481 vjudge4 D March 9, 2015, 12:37 p.m. OK Java 7 TESTS 39 1231 0 2600
7709358 Petr D Sept. 7, 2014, 4:38 p.m. OK Java 7 TESTS 40 1278 0 2600
7709897 qwerty787788 D Sept. 7, 2014, 4:45 p.m. OK Java 7 TESTS 40 1575 0 2600
8061607 IgorKoval D Oct. 2, 2014, 5:04 p.m. OK Java 8 TESTS 39 592 0 2600
8230268 crazypursuer D Oct. 14, 2014, 5:25 p.m. OK Java 8 TESTS 39 1029 1228800 2600
11711684 old_arysson D June 22, 2015, 3:46 p.m. OK Java 8 TESTS 39 1153 0 2600
11711666 Pimpom D June 22, 2015, 3:45 p.m. OK Java 8 TESTS 39 1153 0 2600
7711410 Lewin D Sept. 7, 2014, 5:04 p.m. OK Java 8 TESTS 40 1294 307200 2600
7708637 mmaxio D Sept. 7, 2014, 4:30 p.m. OK Java 8 TESTS 40 1653 0 2600
8061602 IgorKoval D Oct. 2, 2014, 5:03 p.m. OK Java 8 TESTS 39 1934 0 2600
27177032 camypaper D May 17, 2017, 10:27 a.m. OK MS C# TESTS 39 420 102400 2600
7720556 gridnevvvit D Sept. 8, 2014, 11:25 a.m. OK MS C++ TESTS 40 171 0 2600
7718510 sdya D Sept. 8, 2014, 6:06 a.m. OK MS C++ TESTS 40 264 0 2600
7733601 kaseo D Sept. 10, 2014, 9 a.m. OK MS C++ TESTS 40 312 0 2600
18369133 zhangJvv D June 11, 2016, 5:33 a.m. OK MS C++ TESTS 39 312 2867200 2600
8076957 TahaMahmoud D Oct. 4, 2014, 11:41 a.m. OK MS C++ TESTS 39 405 0 2600
7741202 lastseed D Sept. 11, 2014, 11:38 a.m. OK MS C++ TESTS 40 514 0 2600
11991232 pacu D July 9, 2015, 10:47 p.m. OK MS C++ TESTS 39 577 0 2600
7724936 sspa D Sept. 9, 2014, 1:22 a.m. OK MS C++ TESTS 40 577 0 2600
8067311 White_Bear D Oct. 3, 2014, 10:20 a.m. OK MS C++ TESTS 39 1169 0 2600
7714084 kcm1700 D Sept. 7, 2014, 6:21 p.m. OK MS C++ TESTS 40 1326 0 2600

remove filters

Back to search problems