Tinkoff Internship Warmup Round 2018 and Codeforces Round 475 (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
963 Tinkoff Internship Warmup Round 2018 and Codeforces Round 475 (Div. 1) FINISHED False 7200 207849299 April 17, 2018, 2:05 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 551 ) E Circles of Waiting PROGRAMMING math 3100

B"A chip was placed on a field with coordinate system onto point (0, xe2 x80 x890). Every second the chip moves randomly. If the chip is currently at a point (x, xe2 x80 x89y), after a second it moves to the point (x xe2 x80 x89- xe2 x80 x891, xe2 x80 x89y) with probability p1, to the point (x, xe2 x80 x89y xe2 x80 x89- xe2 x80 x891) with probability p2, to the point (x xe2 x80 x89+ xe2 x80 x891, xe2 x80 x89y) with probability p3 and to the point (x, xe2 x80 x89y xe2 x80 x89+ xe2 x80 x891) with probability p4. It's guaranteed that p1 xe2 x80 x89+ xe2 x80 x89p2 xe2 x80 x89+ xe2 x80 x89p3 xe2 x80 x89+ xe2 x80 x89p4 xe2 x80 x89= xe2 x80 x891. The moves are independent. Find out the expected time after which chip will move away from origin at a distance greater than R (i.e. will be satisfied). First line contains five integers R, xe2 x80 x89a1, xe2 x80 x89a2, xe2 x80 x89a3 and a4 (0 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89R xe2 x80 x89 xe2 x89 xa4 xe2 x80 x8950, xe2 x80 x891 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89a1, xe2 x80 x89a2, xe2 x80 x89a3, xe2 x80 x89a4 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x891000). Probabilities pi can be calculated using formula . It can be shown that answer for this problem is always a rational number of form , where . Print P xc2 xb7Q xe2 x80 x89- xe2 x80 x891 modulo 109 xe2 x80 x89+ xe2 x80 x897. In the first example initially the chip is located at a distance 0 from origin. In one second chip will move to distance 1 is some direction, so distance to origin will become 1. Answers to the second and the third tests: and . "...

Tutorials

Editorial Tinkoff Internship Warmup Round 2018 and Codeforces Round #475 (Div. 1 + Div. 2)

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
69882105 hos.lyric E Jan. 31, 2020, 6:45 a.m. OK D TESTS 123 93 12083200 3100
37493008 vjudge3 E April 20, 2018, 4:29 p.m. OK GNU C++ TESTS 123 670 23756800 3100
39762952 ilnil E June 29, 2018, 8:40 a.m. OK GNU C++ TESTS 123 795 250470400 3100
37856143 OrangeLee E May 3, 2018, 7:47 a.m. OK GNU C++ TESTS 123 982 260198400 3100
37856186 OrangeLee E May 3, 2018, 7:50 a.m. OK GNU C++ TESTS 123 1029 260198400 3100
39209400 robinliu E June 13, 2018, 7:47 a.m. OK GNU C++ TESTS 123 1045 256614400 3100
39765822 ZhongJQ E June 29, 2018, 10:56 a.m. OK GNU C++ TESTS 123 1185 250060800 3100
38608492 fpdqwq E May 25, 2018, 12:16 p.m. OK GNU C++ TESTS 123 1294 247398400 3100
41583614 iamz E Aug. 14, 2018, 9:34 a.m. OK GNU C++ TESTS 123 1388 6758400 3100
41583659 iamz E Aug. 14, 2018, 9:36 a.m. OK GNU C++ TESTS 123 1404 256614400 3100
41583930 iamz E Aug. 14, 2018, 9:45 a.m. OK GNU C++ TESTS 123 1435 256614400 3100
53958353 142857 E May 10, 2019, 12:54 p.m. OK GNU C++11 TESTS 123 61 4505600 3100
56063058 tender_green E June 26, 2019, 6:33 a.m. OK GNU C++11 TESTS 123 62 3584000 3100
62400076 foreverlasting E Oct. 12, 2019, 7:03 a.m. OK GNU C++11 TESTS 123 62 4300800 3100
67289826 lzoilxy E Dec. 20, 2019, 3:17 p.m. OK GNU C++11 TESTS 123 62 4608000 3100
56058775 yht_boyfriend E June 26, 2019, 3:28 a.m. OK GNU C++11 TESTS 123 62 4812800 3100
67575397 sshwyR E Dec. 25, 2019, 1:33 a.m. OK GNU C++11 TESTS 123 62 9728000 3100
67289684 lzoilxy E Dec. 20, 2019, 3:15 p.m. OK GNU C++11 TESTS 123 62 45363200 3100
56050229 little_waxberry E June 25, 2019, 6:39 p.m. OK GNU C++11 TESTS 123 77 5427200 3100
67471767 BigSheep0v0 E Dec. 23, 2019, 1:02 p.m. OK GNU C++11 TESTS 123 78 3584000 3100
67585235 xryjr233 E Dec. 25, 2019, 8 a.m. OK GNU C++11 TESTS 123 78 4505600 3100
67576016 autoint E Dec. 25, 2019, 2:17 a.m. OK GNU C++14 TESTS 123 46 5427200 3100
40932362 ReaLNero1 E July 30, 2018, 1:45 a.m. OK GNU C++14 TESTS 123 46 5632000 3100
69875448 Cyanic E Jan. 31, 2020, 3:43 a.m. OK GNU C++14 TESTS 123 61 4915200 3100
51247395 apiadu E March 13, 2019, 6:20 a.m. OK GNU C++14 TESTS 123 62 3686400 3100
67447274 ZZZZZZZZZZZZZZZZZZ E Dec. 22, 2019, 11:40 p.m. OK GNU C++14 TESTS 123 62 4403200 3100
63128102 mayaohua2003 E Oct. 22, 2019, 1:24 p.m. OK GNU C++14 TESTS 123 62 4710400 3100
38958605 ugly2333 E June 5, 2018, 3:39 a.m. OK GNU C++14 TESTS 123 62 8908800 3100
56035173 vjudge5 E June 25, 2019, 11:43 a.m. OK GNU C++14 TESTS 123 156 9523200 3100
59777152 Scut82 E Aug. 31, 2019, 12:24 a.m. OK GNU C++14 TESTS 123 483 10137600 3100
66749553 hjc20032003 E Dec. 13, 2019, 5:11 a.m. OK GNU C++14 TESTS 123 545 10854400 3100
67768473 mocania E Dec. 28, 2019, 5:35 a.m. OK GNU C++17 TESTS 123 62 4300800 3100
63625809 Roundgod E Oct. 28, 2019, 3:37 a.m. OK GNU C++17 TESTS 123 62 4915200 3100
63561204 gisp_zjz E Oct. 27, 2019, 2:18 p.m. OK GNU C++17 TESTS 123 62 10649600 3100
69881462 maroonrk E Jan. 31, 2020, 6:31 a.m. OK GNU C++17 TESTS 123 77 28774400 3100
67576333 naitir E Dec. 25, 2019, 2:40 a.m. OK GNU C++17 TESTS 123 78 161075200 3100
56044693 vjudge5 E June 25, 2019, 4 p.m. OK GNU C++17 TESTS 123 186 72499200 3100
56062717 lqs2015 E June 26, 2019, 6:22 a.m. OK GNU C++17 TESTS 123 639 11161600 3100
68889009 user202729_ E Jan. 16, 2020, 12:51 a.m. OK GNU C++17 TESTS 123 733 9932800 3100
37408346 V--o_o--V E April 17, 2018, 3:26 p.m. OK GNU C++17 TESTS 123 811 250470400 3100
51582742 Fulisike E March 20, 2019, 3:04 p.m. OK GNU C++17 TESTS 123 888 4812800 3100
37413428 mmaxio E April 17, 2018, 4:03 p.m. OK Java 8 TESTS 123 1824 27443200 3100
53790634 vjudge1 E May 5, 2019, 12:37 p.m. OK MS C++ TESTS 123 1184 84787200 3100
37603597 newbeginBKB E April 25, 2018, 4:56 p.m. OK MS C++ TESTS 123 1778 28262400 3100

remove filters

Back to search problems