Codeforces Round 645 (Div. 2)

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
1358 Codeforces Round 645 (Div. 2) FINISHED False 7200 141319499 May 26, 2020, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 17453 ) C Celex Update PROGRAMMING math 1600

B'During the quarantine, Sicromoft has more free time to create the new functions in "Celex-2021". The developers made a new function GAZ-GIZ, which infinitely fills an infinite table to the right and down from the upper left corner as follows: The developers of the SUM function don 't sleep either. Because of the boredom, they teamed up with the developers of the RAND function, so they added the ability to calculate the sum on an arbitrary path from one cell to another, moving down or right. Formally, from the cell (x,y) in one step you can move to the cell (x+1, y) or (x, y+1) . After another Dinwows update, Levian started to study "Celex-2021" (because he wants to be an accountant!). After filling in the table with the GAZ-GIZ function, he asked you to calculate the quantity of possible different amounts on the path from a given cell (x_1, y_1) to another given cell (x_2, y_2 ), if you can only move one cell down or right. Formally, consider all the paths from the cell (x_1, y_1) to cell (x_2, y_2) such that each next cell in the path is located either to the down or to the right of the previous one. Calculate the number of different sums of elements for all such paths. The first line contains one integer t ( 1 <= t <= 57179 ) -- the number of test cases. Each of the following t lines contains four natural numbers x_1 , y_1 , x_2 , y_2 ( 1 <= x_1 <= x_2 <= 10^9 , 1 <= y_1 <= y_2 <= 10^9 ) -- coordinates of the start and the end cells. For each test case, in a separate line, print the number of possible different sums on the way from the start cell to the end cell. In the first test case there are two possible sums: 1+2+5=8 and 1+3+5=9 . '...

Tutorials

Codeforces Round #645 (Div. 2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
81571263 kingpin119 C May 27, 2020, 1:01 a.m. OK GNU C11 TESTS 32 280 0 1600
81556601 Srk1C C May 26, 2020, 6:41 p.m. OK GNU C11 TESTS 32 295 0 1600
81536469 vinayakp C May 26, 2020, 4:11 p.m. OK GNU C11 TESTS 32 295 0 1600
81696125 QScloud C May 28, 2020, 10:40 a.m. OK GNU C11 TESTS 32 295 204800 1600
81545992 ananaygupta70 C May 26, 2020, 4:32 p.m. OK GNU C11 TESTS 32 296 0 1600
81530003 Tanzim_bn C May 26, 2020, 3:56 p.m. OK GNU C11 TESTS 32 296 0 1600
81550980 code_messiah C May 26, 2020, 5:35 p.m. OK GNU C11 TESTS 32 296 0 1600
81571284 kingpin119 C May 27, 2020, 1:01 a.m. OK GNU C11 TESTS 32 296 0 1600
81555410 SUNNY24 C May 26, 2020, 6:25 p.m. OK GNU C11 TESTS 32 296 0 1600
81529774 checking_00 C May 26, 2020, 3:55 p.m. OK GNU C11 TESTS 32 296 0 1600
81613665 suxxsfe C May 27, 2020, 11:49 a.m. OK GNU C++11 TESTS 32 46 0 1600
81572186 Logey C May 27, 2020, 1:33 a.m. OK GNU C++11 TESTS 32 46 0 1600
81569223 caidzh C May 26, 2020, 11:55 p.m. OK GNU C++11 TESTS 32 46 0 1600
81528756 scimoon C May 26, 2020, 3:53 p.m. OK GNU C++11 TESTS 32 46 0 1600
81713109 Karry5307 C May 28, 2020, 2:12 p.m. OK GNU C++11 TESTS 32 46 0 1600
81710701 CTP_314 C May 28, 2020, 1:44 p.m. OK GNU C++11 TESTS 32 46 0 1600
81669141 mikoo C May 28, 2020, 4:32 a.m. OK GNU C++11 TESTS 32 46 0 1600
81569757 2018LZY C May 27, 2020, 12:14 a.m. OK GNU C++11 TESTS 32 46 102400 1600
81669197 mikoo C May 28, 2020, 4:34 a.m. OK GNU C++11 TESTS 32 46 204800 1600
81666077 Eric_Aslan C May 28, 2020, 3:19 a.m. OK GNU C++11 TESTS 32 46 307200 1600
81591944 idxcalcal C May 27, 2020, 7:18 a.m. OK GNU C++14 TESTS 32 46 1024000 1600
81535927 KaguraNana C May 26, 2020, 4:10 p.m. OK GNU C++14 TESTS 32 62 409600 1600
81620716 Merci_12_Y C May 27, 2020, 1:01 p.m. OK GNU C++14 TESTS 32 77 0 1600
81597267 sunliwei C May 27, 2020, 8:24 a.m. OK GNU C++14 TESTS 32 78 0 1600
81574404 vitoy C May 27, 2020, 2:39 a.m. OK GNU C++14 TESTS 32 78 0 1600
81570005 AkaiLemon C May 27, 2020, 12:22 a.m. OK GNU C++14 TESTS 32 78 0 1600
81665076 szfck C May 28, 2020, 2:55 a.m. OK GNU C++14 TESTS 32 78 0 1600
81636715 Luan_girl C May 27, 2020, 3:59 p.m. OK GNU C++14 TESTS 32 78 0 1600
81618837 Dolonjahin C May 27, 2020, 12:41 p.m. OK GNU C++14 TESTS 32 78 0 1600
81599758 Moath C May 27, 2020, 8:53 a.m. OK GNU C++14 TESTS 32 78 0 1600
81599762 trainDOGGO C May 27, 2020, 8:53 a.m. OK GNU C++17 TESTS 32 61 307200 1600
81584480 kaike C May 27, 2020, 5:45 a.m. OK GNU C++17 TESTS 32 77 0 1600
81542466 lakergo C May 26, 2020, 4:25 p.m. OK GNU C++17 TESTS 32 77 204800 1600
81573929 jintiandun C May 27, 2020, 2:29 a.m. OK GNU C++17 TESTS 32 77 204800 1600
81682506 vjudge3 C May 28, 2020, 7:50 a.m. OK GNU C++17 TESTS 32 78 0 1600
81529284 geray__king C May 26, 2020, 3:54 p.m. OK GNU C++17 TESTS 32 78 0 1600
81529071 ADJA C May 26, 2020, 3:53 p.m. OK GNU C++17 TESTS 32 78 0 1600
81572984 jzdx C May 27, 2020, 1:58 a.m. OK GNU C++17 TESTS 32 78 0 1600
81626849 code.infinity C May 27, 2020, 2:12 p.m. OK GNU C++17 TESTS 32 78 204800 1600
81674165 Vergil C May 28, 2020, 6:02 a.m. OK GNU C++17 TESTS 32 78 204800 1600
81590242 nikitaqqqq C May 27, 2020, 6:56 a.m. OK GNU C++17 (64) TESTS 32 62 0 1600
81597200 WrongAnswerOnTest1 C May 27, 2020, 8:23 a.m. OK GNU C++17 (64) TESTS 32 62 0 1600
81600000 yashvardhan29 C May 27, 2020, 8:56 a.m. OK GNU C++17 (64) TESTS 32 62 0 1600
81601511 sharrad99 C May 27, 2020, 9:15 a.m. OK GNU C++17 (64) TESTS 32 62 0 1600
81619773 MohamedMotaz C May 27, 2020, 12:51 p.m. OK GNU C++17 (64) TESTS 32 62 0 1600
81624074 SouravSharma C May 27, 2020, 1:41 p.m. OK GNU C++17 (64) TESTS 32 62 0 1600
81629719 sushkov.pv C May 27, 2020, 2:43 p.m. OK GNU C++17 (64) TESTS 32 62 0 1600
81635893 syawl-1017 C May 27, 2020, 3:50 p.m. OK GNU C++17 (64) TESTS 32 62 0 1600
81661319 saketh C May 28, 2020, 12:58 a.m. OK GNU C++17 (64) TESTS 32 62 0 1600
81670905 tannatsri C May 28, 2020, 5:10 a.m. OK GNU C++17 (64) TESTS 32 62 0 1600
81555004 Noureldin C May 26, 2020, 6:20 p.m. OK Go TESTS 32 46 13209600 1600
81574439 amarjeetanand C May 27, 2020, 2:41 a.m. OK Go TESTS 32 108 4505600 1600
81586702 synapse C May 27, 2020, 6:12 a.m. OK Go TESTS 32 202 4505600 1600
81586668 synapse C May 27, 2020, 6:12 a.m. OK Go TESTS 32 218 4505600 1600
81550709 maguroguma C May 26, 2020, 5:33 p.m. OK Go TESTS 32 295 4608000 1600
81530227 maguroguma C May 26, 2020, 3:56 p.m. OK Go TESTS 32 296 4608000 1600
81546501 byorgey C May 26, 2020, 4:33 p.m. OK Haskell TESTS 32 108 102400 1600
81538811 fengzi11235 C May 26, 2020, 4:17 p.m. OK Haskell TESTS 32 561 1126400 1600
81640810 yb1717 C May 27, 2020, 4:48 p.m. OK Java 11 TESTS 32 186 0 1600
81711447 atishay127 C May 28, 2020, 1:52 p.m. OK Java 11 TESTS 32 202 0 1600
81673373 In_The_Name_Of_Love C May 28, 2020, 5:51 a.m. OK Java 11 TESTS 32 202 0 1600
81644458 mahendrabishnoi2 C May 27, 2020, 5:33 p.m. OK Java 11 TESTS 32 202 0 1600
81625579 kgcode C May 27, 2020, 1:59 p.m. OK Java 11 TESTS 32 202 0 1600
81591667 p_unit C May 27, 2020, 7:14 a.m. OK Java 11 TESTS 32 202 0 1600
81557631 saikaushik333 C May 26, 2020, 6:54 p.m. OK Java 11 TESTS 32 217 0 1600
81546894 ssaxena36 C May 26, 2020, 4:33 p.m. OK Java 11 TESTS 32 217 0 1600
81627835 kunalkatiyar9 C May 27, 2020, 2:23 p.m. OK Java 11 TESTS 32 218 0 1600
81534395 dauom C May 26, 2020, 4:06 p.m. OK Java 11 TESTS 32 218 0 1600
81706867 ragnarok001 C May 28, 2020, 12:56 p.m. OK Java 8 TESTS 32 124 0 1600
81561725 Anurag895 C May 26, 2020, 8:01 p.m. OK Java 8 TESTS 32 124 0 1600
81703548 niteshnanda C May 28, 2020, 12:16 p.m. OK Java 8 TESTS 32 139 0 1600
81675276 Bhavya_Arora C May 28, 2020, 6:15 a.m. OK Java 8 TESTS 32 139 0 1600
81591171 te_amo C May 27, 2020, 7:08 a.m. OK Java 8 TESTS 32 139 0 1600
81584765 amolpratap007 C May 27, 2020, 5:48 a.m. OK Java 8 TESTS 32 139 0 1600
81556182 ShesMyNerd C May 26, 2020, 6:35 p.m. OK Java 8 TESTS 32 139 0 1600
81542019 Sriram2510 C May 26, 2020, 4:24 p.m. OK Java 8 TESTS 32 139 0 1600
81644425 ashraybharambe C May 27, 2020, 5:33 p.m. OK Java 8 TESTS 32 140 0 1600
81656253 nandit C May 27, 2020, 9:25 p.m. OK Java 8 TESTS 32 140 0 1600
81592921 Spheniscine C May 27, 2020, 7:31 a.m. OK Kotlin TESTS 32 171 0 1600
81649424 amelentev C May 27, 2020, 6:59 p.m. OK Kotlin TESTS 32 186 0 1600
81630501 iankury C May 27, 2020, 2:52 p.m. OK Kotlin TESTS 32 421 0 1600
81635166 stormtrooper1859 C May 27, 2020, 3:42 p.m. OK Kotlin TESTS 32 545 0 1600
81555388 Tlatoani C May 26, 2020, 6:25 p.m. OK Kotlin TESTS 32 561 0 1600
81551422 songsinger C May 26, 2020, 5:48 p.m. OK Kotlin TESTS 32 717 0 1600
81578986 FrankreedX C May 27, 2020, 4:09 a.m. OK Kotlin TESTS 32 717 0 1600
81556235 victoria.g C May 26, 2020, 6:35 p.m. OK Kotlin TESTS 32 717 0 1600
81656055 Black_Fregat C May 27, 2020, 9:18 p.m. OK Kotlin TESTS 32 717 102400 1600
81601767 Danzev C May 27, 2020, 9:18 a.m. OK Kotlin TESTS 32 717 102400 1600
81526650 mban259 C May 26, 2020, 3:48 p.m. OK Mono C# TESTS 32 171 3072000 1600
81575650 terry_u16 C May 27, 2020, 3:04 a.m. OK Mono C# TESTS 32 171 3174400 1600
81561231 teru C May 26, 2020, 7:52 p.m. OK Mono C# TESTS 32 187 7270400 1600
81545162 PPons C May 26, 2020, 4:31 p.m. OK Mono C# TESTS 32 373 3072000 1600
81557133 I_am_Heisenberg C May 26, 2020, 6:48 p.m. OK Mono C# TESTS 32 498 3174400 1600
81543715 Makscee C May 26, 2020, 4:28 p.m. OK Mono C# TESTS 32 514 3072000 1600
81628147 TRR C May 27, 2020, 2:26 p.m. OK Mono C# TESTS 32 514 3072000 1600
81572785 abd_alrhman_ C May 27, 2020, 1:51 a.m. OK Mono C# TESTS 32 514 6860800 1600
81599643 _Trung_Nguyen C May 27, 2020, 8:52 a.m. OK Mono C# TESTS 32 545 6860800 1600
81545418 bqns0125 C May 26, 2020, 4:31 p.m. OK MS C++ TESTS 32 436 0 1600
81527346 dundae C May 26, 2020, 3:49 p.m. OK MS C++ 2017 TESTS 32 109 819200 1600
81543371 seoungjun C May 26, 2020, 4:27 p.m. OK MS C++ 2017 TESTS 32 124 0 1600
81568741 leventa C May 26, 2020, 11:32 p.m. OK MS C++ 2017 TESTS 32 124 102400 1600
81541574 getN1ght C May 26, 2020, 4:23 p.m. OK MS C++ 2017 TESTS 32 265 0 1600
81601303 dimasidorenko C May 27, 2020, 9:13 a.m. OK MS C++ 2017 TESTS 32 265 102400 1600
81552337 ilya_totl C May 26, 2020, 5:55 p.m. OK MS C++ 2017 TESTS 32 265 307200 1600
81528357 deuslovelt C May 26, 2020, 3:52 p.m. OK MS C++ 2017 TESTS 32 265 512000 1600
81537665 reikiriyama C May 26, 2020, 4:14 p.m. OK MS C++ 2017 TESTS 32 280 307200 1600
81542737 srtgguy C May 26, 2020, 4:26 p.m. OK MS C++ 2017 TESTS 32 280 307200 1600
81536959 0Mordecai0 C May 26, 2020, 4:12 p.m. OK MS C++ 2017 TESTS 32 280 307200 1600
81565394 c1729 C May 26, 2020, 9:21 p.m. OK PyPy 2 TESTS 32 202 12390400 1600
81544293 snape_here C May 26, 2020, 4:29 p.m. OK PyPy 2 TESTS 32 217 12185600 1600
81605919 kit.shiron C May 27, 2020, 10:14 a.m. OK PyPy 2 TESTS 32 218 7680000 1600
81631885 yumtam C May 27, 2020, 3:06 p.m. OK PyPy 2 TESTS 32 218 7884800 1600
81534947 sksshivam007 C May 26, 2020, 4:08 p.m. OK PyPy 2 TESTS 32 249 13312000 1600
81549962 realnimish C May 26, 2020, 5:30 p.m. OK PyPy 2 TESTS 32 249 15974400 1600
81555755 shanu_im C May 26, 2020, 6:30 p.m. OK PyPy 2 TESTS 32 280 13004800 1600
81554091 iamprayush C May 26, 2020, 6:11 p.m. OK PyPy 2 TESTS 32 295 17305600 1600
81713617 mo-hit C May 28, 2020, 2:19 p.m. OK PyPy 2 TESTS 32 342 18841600 1600
81542408 anshuman16423 C May 26, 2020, 4:25 p.m. OK PyPy 2 TESTS 32 623 4710400 1600
81550276 apoorvwatsky C May 26, 2020, 5:31 p.m. OK PyPy 3 TESTS 32 233 11571200 1600
81563684 hritik3878 C May 26, 2020, 8:39 p.m. OK PyPy 3 TESTS 32 249 11673600 1600
81535999 bravotango C May 26, 2020, 4:10 p.m. OK PyPy 3 TESTS 32 249 11673600 1600
81533884 coder_sounak C May 26, 2020, 4:05 p.m. OK PyPy 3 TESTS 32 249 11673600 1600
81532463 anishde85 C May 26, 2020, 4:02 p.m. OK PyPy 3 TESTS 32 249 11673600 1600
81536688 kriish C May 26, 2020, 4:12 p.m. OK PyPy 3 TESTS 32 280 12800000 1600
81534426 Rajdeep2k C May 26, 2020, 4:06 p.m. OK PyPy 3 TESTS 32 280 12800000 1600
81535639 tiwari0000 C May 26, 2020, 4:09 p.m. OK PyPy 3 TESTS 32 295 14336000 1600
81572576 brthyyjp C May 27, 2020, 1:44 a.m. OK PyPy 3 TESTS 32 296 7065600 1600
81550325 deepanshu_pali C May 26, 2020, 5:31 p.m. OK PyPy 3 TESTS 32 296 12697600 1600
81601258 crapplet C May 27, 2020, 9:12 a.m. OK Python 2 TESTS 32 358 1024000 1600
81554665 hackerbaba C May 26, 2020, 6:17 p.m. OK Python 2 TESTS 32 358 1024000 1600
81549607 _costheta_ C May 26, 2020, 5:29 p.m. OK Python 2 TESTS 32 374 1024000 1600
81539150 coderbd C May 26, 2020, 4:18 p.m. OK Python 2 TESTS 32 389 0 1600
81554240 fromexptolog C May 26, 2020, 6:13 p.m. OK Python 2 TESTS 32 389 1024000 1600
81528077 baihuahua C May 26, 2020, 3:51 p.m. OK Python 2 TESTS 32 716 1024000 1600
81563197 murugappan_s C May 26, 2020, 8:29 p.m. OK Python 2 TESTS 32 873 1024000 1600
81550292 pigeon_hole C May 26, 2020, 5:31 p.m. OK Python 2 TESTS 32 1200 0 1600
81530548 arman_ferdous C May 26, 2020, 3:57 p.m. OK Python 2 TESTS 32 1497 0 1600
81707842 Daniil_Gorohov C May 28, 2020, 1:08 p.m. OK Python 3 TESTS 32 280 819200 1600
81595519 Exploud C May 27, 2020, 8:05 a.m. OK Python 3 TESTS 32 295 512000 1600
81597919 Exploud C May 27, 2020, 8:31 a.m. OK Python 3 TESTS 32 295 3993600 1600
81571663 nebocco C May 27, 2020, 1:13 a.m. OK Python 3 TESTS 32 311 614400 1600
81547454 TakoKurage C May 26, 2020, 4:34 p.m. OK Python 3 TESTS 32 311 17510400 1600
81616788 coder1033 C May 27, 2020, 12:20 p.m. OK Python 3 TESTS 32 326 716800 1600
81597947 ninadc C May 27, 2020, 8:32 a.m. OK Python 3 TESTS 32 327 307200 1600
81529537 newbie7025 C May 26, 2020, 3:54 p.m. OK Python 3 TESTS 32 327 512000 1600
81537773 m80126colin C May 26, 2020, 4:14 p.m. OK Python 3 TESTS 32 327 614400 1600
81581544 ...I_am_Kira... C May 27, 2020, 4:59 a.m. OK Python 3 TESTS 32 327 3072000 1600
81566441 utkarsh2102 C May 26, 2020, 9:51 p.m. OK Ruby TESTS 32 436 307200 1600
81572161 tonyu0 C May 27, 2020, 1:31 a.m. OK Rust TESTS 32 62 6246400 1600
81617025 loujunjie C May 27, 2020, 12:22 p.m. OK Rust TESTS 32 608 6246400 1600
81604985 pandrei C May 27, 2020, 10:01 a.m. OK Rust TESTS 32 655 0 1600
81537403 macho_uno C May 26, 2020, 4:13 p.m. OK Rust TESTS 32 1419 0 1600
81565901 gevmart C May 26, 2020, 9:35 p.m. OK Scala TESTS 32 904 0 1600
81556760 IvanDyachenko C May 26, 2020, 6:43 p.m. OK Scala TESTS 32 1044 0 1600

remove filters

Back to search problems