Codeforces Round 593 (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
1236 Codeforces Round 593 (Div. 2) FINISHED False 7200 160503899 Oct. 17, 2019, 1:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 11136 ) B Alice and the List of Presents PROGRAMMING combinatorics math 1400

B"Alice got many presents these days. So she decided to pack them into boxes and send them to her friends. There are n kinds of presents. Presents of one kind are identical (i.e. there is no way to distinguish two gifts of the same kind). Presents of different kinds are different (i.e. that is, two gifts of different kinds are distinguishable). The number of presents of each kind, that Alice has is very big, so we can consider Alice has an infinite number of gifts of each kind. Also, there are m boxes. All of them are for different people, so they are pairwise distinct (consider that the names of m friends are written on the boxes). For example, putting the first kind of present into the first box but not into the second box, is different from putting the first kind of present into the second box but not into the first box. Alice wants to pack presents with the following rules: Now Alice wants to know how many different ways to pack the presents exists. Please, help her and calculate this number. Since the answer can be huge, output it by modulo 10^9+7 . See examples and their notes for clarification. The first line contains two integers n and m , separated by spaces ( 1 <= q n,m <= q 10^9 ) -- the number of kinds of presents and the number of boxes that Alice has. Print one integer -- the number of ways to pack the presents with Alice's rules, calculated by modulo 10^9+7 In the first example, there are seven ways to pack presents: {1 } { } { } { } {1 } { } { } { } {1 } {1 } {1 } { } { } {1 } {1 } {1 } { } {1 } {1 } {1 } {1 } In the second example there are nine ways to pack presents: { } {1,2 } {1 } {2 } {1 } {1,2 } {2 } {1 } {2 } {1,2 } {1,2 } { } {1,2 } {1 } {1,2 } {2 } {1,2 } {1,2 } For example, the way {2 } {2 } is wrong, because presents of the first kind should be used in the least one "...

Tutorials

70654

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
66194366 quevangel B Dec. 2, 2019, 5:47 p.m. OK D TESTS 90 46 0 1400
66203274 quevangel B Dec. 2, 2019, 11:17 p.m. OK D TESTS 90 46 0 1400
62803091 ruban B Oct. 17, 2019, 2:31 p.m. OK Delphi TESTS 90 31 0 1400
63110984 Aftery142 B Oct. 22, 2019, 7:25 a.m. OK FPC TESTS 90 31 0 1400
62836723 duydec1 B Oct. 17, 2019, 11:08 p.m. OK FPC TESTS 90 31 0 1400
62811641 AlifSaddid B Oct. 17, 2019, 3:14 p.m. OK FPC TESTS 90 31 0 1400
62807320 Fidisk B Oct. 17, 2019, 2:51 p.m. OK FPC TESTS 90 31 0 1400
62910731 melery_kin B Oct. 19, 2019, 7:13 a.m. OK FPC TESTS 90 46 0 1400
62807441 Just_Matvey B Oct. 17, 2019, 2:52 p.m. OK FPC TESTS 90 46 0 1400
66226932 Mahdi.HGZ B Dec. 3, 2019, 12:57 p.m. OK GNU C11 TESTS 90 31 0 1400
63021215 yuhi_dosei B Oct. 20, 2019, 2:37 p.m. OK GNU C11 TESTS 90 31 0 1400
63054845 anu_1 B Oct. 21, 2019, 5:40 a.m. OK GNU C11 TESTS 90 31 0 1400
63076538 XLeVi_AcKeRmAnX B Oct. 21, 2019, 1:52 p.m. OK GNU C11 TESTS 90 31 0 1400
63303648 Shoaib_099 B Oct. 24, 2019, 2:58 p.m. OK GNU C11 TESTS 90 31 0 1400
64030974 Empire B Nov. 1, 2019, 4:13 p.m. OK GNU C11 TESTS 90 31 0 1400
64154219 a.h.rajabi B Nov. 3, 2019, 12:18 p.m. OK GNU C11 TESTS 90 31 0 1400
64228370 keshav.maverick B Nov. 4, 2019, 1:53 p.m. OK GNU C11 TESTS 90 31 0 1400
64539821 vjudge1 B Nov. 8, 2019, 6:13 p.m. OK GNU C11 TESTS 90 31 0 1400
64857477 vjudge5 B Nov. 14, 2019, 12:29 a.m. OK GNU C11 TESTS 90 31 0 1400
62800566 shark162799 B Oct. 17, 2019, 2:20 p.m. OK GNU C++11 TESTS 90 30 0 1400
68982859 hzk_cpp B Jan. 17, 2020, 11:24 a.m. OK GNU C++11 TESTS 90 31 0 1400
69881525 Prophet123 B Jan. 31, 2020, 6:32 a.m. OK GNU C++11 TESTS 90 31 0 1400
69837792 dragon_eye B Jan. 30, 2020, 12:19 p.m. OK GNU C++11 TESTS 90 31 0 1400
69827686 Yasseenkamel B Jan. 30, 2020, 9:36 a.m. OK GNU C++11 TESTS 90 31 0 1400
69555618 Andrey_R B Jan. 26, 2020, 8:41 a.m. OK GNU C++11 TESTS 90 31 0 1400
69443718 anderson1208 B Jan. 24, 2020, 12:36 a.m. OK GNU C++11 TESTS 90 31 0 1400
69303414 luogu_bot2 B Jan. 22, 2020, 2:31 p.m. OK GNU C++11 TESTS 90 31 0 1400
69261706 _Kema_ B Jan. 21, 2020, 5:15 p.m. OK GNU C++11 TESTS 90 31 0 1400
69216007 longxiaokong B Jan. 21, 2020, 12:41 a.m. OK GNU C++11 TESTS 90 31 0 1400
63116787 np_soo_hard B Oct. 22, 2019, 9:38 a.m. OK GNU C++14 TESTS 90 15 0 1400
65805019 Black_hat123 B Nov. 27, 2019, 8:31 a.m. OK GNU C++14 TESTS 90 30 0 1400
65796924 vasu2907 B Nov. 27, 2019, 5:22 a.m. OK GNU C++14 TESTS 90 30 0 1400
64181340 AyAyA__ B Nov. 4, 2019, 12:59 a.m. OK GNU C++14 TESTS 90 30 0 1400
63664121 yuxinxincb B Oct. 28, 2019, 2:44 p.m. OK GNU C++14 TESTS 90 30 0 1400
63089604 cyber_ghost02 B Oct. 21, 2019, 5:53 p.m. OK GNU C++14 TESTS 90 30 0 1400
63060963 zhongyuanrose B Oct. 21, 2019, 8:39 a.m. OK GNU C++14 TESTS 90 30 0 1400
62948495 ansh.agrawal.che17 B Oct. 19, 2019, 6:11 p.m. OK GNU C++14 TESTS 90 30 0 1400
67158498 Lbj B Dec. 18, 2019, 1:14 p.m. OK GNU C++14 TESTS 90 30 0 1400
62944038 Hrittik16 B Oct. 19, 2019, 4:39 p.m. OK GNU C++14 TESTS 90 30 0 1400
62849007 KING-SEN B Oct. 18, 2019, 6:33 a.m. OK GNU C++17 TESTS 90 15 0 1400
64095170 AMeyburgh B Nov. 2, 2019, 1:42 p.m. OK GNU C++17 TESTS 90 30 0 1400
64685521 Vika2005 B Nov. 11, 2019, 11:37 a.m. OK GNU C++17 TESTS 90 30 0 1400
66205962 meme_lord B Dec. 3, 2019, 2:55 a.m. OK GNU C++17 TESTS 90 30 0 1400
66559631 Soroush. B Dec. 9, 2019, 6:19 p.m. OK GNU C++17 TESTS 90 30 0 1400
67063461 Shoriful_Islam B Dec. 17, 2019, 10:08 a.m. OK GNU C++17 TESTS 90 30 0 1400
67136834 canvn2000 B Dec. 18, 2019, 4:46 a.m. OK GNU C++17 TESTS 90 30 0 1400
67624106 wish_me_good B Dec. 25, 2019, 8:26 p.m. OK GNU C++17 TESTS 90 30 0 1400
68081858 AR_Nasim B Jan. 2, 2020, 2:40 p.m. OK GNU C++17 TESTS 90 30 0 1400
68573497 wdnmd0000 B Jan. 11, 2020, 3:46 a.m. OK GNU C++17 TESTS 90 30 0 1400
62969972 1champ10n B Oct. 20, 2019, 6:32 a.m. OK Go TESTS 90 31 0 1400
62921267 sjardhee B Oct. 19, 2019, 10:04 a.m. OK Go TESTS 90 31 0 1400
62839629 naito B Oct. 18, 2019, 1:41 a.m. OK Go TESTS 90 31 0 1400
62976830 1champ10n B Oct. 20, 2019, 8:54 a.m. OK Go TESTS 90 46 0 1400
62805421 Dekedro B Oct. 17, 2019, 2:42 p.m. OK Go TESTS 90 46 0 1400
62801390 z20124528 B Oct. 17, 2019, 2:24 p.m. OK Go TESTS 90 46 0 1400
62793467 maguroguma B Oct. 17, 2019, 1:58 p.m. OK Go TESTS 90 46 0 1400
62790354 cojna B Oct. 17, 2019, 1:49 p.m. OK Haskell TESTS 90 46 102400 1400
63777573 serafimkoo B Oct. 30, 2019, 10:03 a.m. OK Java 11 TESTS 90 187 0 1400
68642827 warrioramrit B Jan. 12, 2020, 8:04 a.m. OK Java 11 TESTS 90 202 0 1400
65519622 SofyaPavlova B Nov. 22, 2019, 7:40 a.m. OK Java 11 TESTS 90 202 0 1400
65056557 Codess B Nov. 15, 2019, 3:21 p.m. OK Java 11 TESTS 90 202 0 1400
64741383 Shmimy B Nov. 12, 2019, 12:06 p.m. OK Java 11 TESTS 90 202 0 1400
63272562 Boyko_Timofey B Oct. 24, 2019, 5:08 a.m. OK Java 11 TESTS 90 218 0 1400
63658402 tusharjape007 B Oct. 28, 2019, 1:22 p.m. OK Java 8 TESTS 90 109 0 1400
63610577 NormalGeek B Oct. 27, 2019, 5:02 p.m. OK Java 8 TESTS 90 109 0 1400
63397736 mayankarora21 B Oct. 25, 2019, 5:13 p.m. OK Java 8 TESTS 90 109 0 1400
63288315 utsavcoding B Oct. 24, 2019, 11:03 a.m. OK Java 8 TESTS 90 109 0 1400
62872027 NEPOSREDSTVENNO B Oct. 18, 2019, 2:05 p.m. OK Java 8 TESTS 90 109 0 1400
62853942 instant_crush B Oct. 18, 2019, 8:31 a.m. OK Java 8 TESTS 90 109 0 1400
62852681 dipanshu_10297 B Oct. 18, 2019, 8 a.m. OK Java 8 TESTS 90 109 0 1400
62844360 ___Kaito---Kid___ B Oct. 18, 2019, 4:47 a.m. OK Java 8 TESTS 90 109 0 1400
62833819 Ahmed_Hosssam B Oct. 17, 2019, 9:05 p.m. OK Java 8 TESTS 90 109 0 1400
69189273 Hardikkumar_Katakiya B Jan. 20, 2020, 1 p.m. OK Java 8 TESTS 90 124 0 1400
63073145 walborn B Oct. 21, 2019, 12:58 p.m. OK JavaScript TESTS 90 31 1126400 1400
62840043 Spheniscine B Oct. 18, 2019, 2 a.m. OK Kotlin TESTS 90 124 0 1400
62812316 monsterr B Oct. 17, 2019, 3:18 p.m. OK Kotlin TESTS 90 155 0 1400
62870814 david_varela B Oct. 18, 2019, 1:43 p.m. OK Kotlin TESTS 90 155 102400 1400
62893282 Black_Fregat B Oct. 18, 2019, 9:45 p.m. OK Kotlin TESTS 90 155 102400 1400
62811408 ruxbit B Oct. 17, 2019, 3:13 p.m. OK Kotlin TESTS 90 155 102400 1400
62792080 Denzed B Oct. 17, 2019, 1:54 p.m. OK Kotlin TESTS 90 170 102400 1400
62800898 sainageswar B Oct. 17, 2019, 2:22 p.m. OK Kotlin TESTS 90 171 102400 1400
62955491 hloya B Oct. 19, 2019, 8:16 p.m. OK Mono C# TESTS 90 46 0 1400
62789204 omikad B Oct. 17, 2019, 1:47 p.m. OK Mono C# TESTS 90 62 0 1400
62787447 claw88 B Oct. 17, 2019, 1:43 p.m. OK Mono C# TESTS 90 62 0 1400
62790109 eki B Oct. 17, 2019, 1:49 p.m. OK Mono C# TESTS 90 62 0 1400
62916287 Giangvp B Oct. 19, 2019, 8:46 a.m. OK Mono C# TESTS 90 62 0 1400
62932610 1champ10n B Oct. 19, 2019, 1:08 p.m. OK Mono C# TESTS 90 62 102400 1400
64799067 nastya1199 B Nov. 13, 2019, 1:56 p.m. OK Mono C# TESTS 90 62 1536000 1400
62853125 chika0707 B Oct. 18, 2019, 8:11 a.m. OK Mono C# TESTS 90 62 1638400 1400
62791119 azukun B Oct. 17, 2019, 1:51 p.m. OK Mono C# TESTS 90 62 1638400 1400
62956554 ilia.kot B Oct. 19, 2019, 8:48 p.m. OK Mono C# TESTS 90 62 3584000 1400
64696527 vjudge2 B Nov. 11, 2019, 1:30 p.m. OK MS C++ TESTS 90 31 0 1400
66613495 Gleb_Dubosarskii B Dec. 11, 2019, 12:56 a.m. OK MS C++ TESTS 90 31 0 1400
66401109 vjudge2 B Dec. 6, 2019, 12:19 p.m. OK MS C++ TESTS 90 31 0 1400
66399963 vjudge1 B Dec. 6, 2019, 11:59 a.m. OK MS C++ TESTS 90 31 0 1400
66397232 vjudge3 B Dec. 6, 2019, 11:13 a.m. OK MS C++ TESTS 90 31 0 1400
65728635 vjudge4 B Nov. 26, 2019, 2:50 a.m. OK MS C++ TESTS 90 31 0 1400
65697845 vjudge4 B Nov. 25, 2019, 9:15 a.m. OK MS C++ TESTS 90 31 0 1400
65304142 vjudge5 B Nov. 18, 2019, 2:17 p.m. OK MS C++ TESTS 90 31 0 1400
64340371 vjudge5 B Nov. 6, 2019, 2:08 a.m. OK MS C++ TESTS 90 31 0 1400
64340334 vjudge5 B Nov. 6, 2019, 2:06 a.m. OK MS C++ TESTS 90 31 0 1400
62925826 Rydolf_sikorski-Baal B Oct. 19, 2019, 11:18 a.m. OK MS C++ 2017 TESTS 90 31 0 1400
62927821 mityankin B Oct. 19, 2019, 11:50 a.m. OK MS C++ 2017 TESTS 90 31 0 1400
62962921 ZrbtZ B Oct. 20, 2019, 2:21 a.m. OK MS C++ 2017 TESTS 90 31 0 1400
62988290 lzstudy B Oct. 20, 2019, 9:32 a.m. OK MS C++ 2017 TESTS 90 31 0 1400
63003323 hushiba B Oct. 20, 2019, 10:41 a.m. OK MS C++ 2017 TESTS 90 31 0 1400
63004195 vjudge2 B Oct. 20, 2019, 10:46 a.m. OK MS C++ 2017 TESTS 90 31 0 1400
63050548 return-zan B Oct. 21, 2019, 2 a.m. OK MS C++ 2017 TESTS 90 31 0 1400
63071487 Mo_maek B Oct. 21, 2019, 12:30 p.m. OK MS C++ 2017 TESTS 90 31 0 1400
64684990 vjudge3 B Nov. 11, 2019, 11:27 a.m. OK MS C++ 2017 TESTS 90 31 0 1400
62925040 Karimbz B Oct. 19, 2019, 11:06 a.m. OK MS C++ 2017 TESTS 90 31 0 1400
67165320 Kiral55 B Dec. 18, 2019, 3:21 p.m. OK PHP TESTS 90 46 409600 1400
62794127 Samo.A.R B Oct. 17, 2019, 1:59 p.m. OK PyPy 2 TESTS 90 124 0 1400
62797531 your_Daddy___ B Oct. 17, 2019, 2:09 p.m. OK PyPy 2 TESTS 90 139 0 1400
62787348 bcollet B Oct. 17, 2019, 1:43 p.m. OK PyPy 2 TESTS 90 140 0 1400
62814101 idzharbae B Oct. 17, 2019, 3:28 p.m. OK PyPy 2 TESTS 90 140 0 1400
62799539 MVP B Oct. 17, 2019, 2:16 p.m. OK PyPy 2 TESTS 90 140 0 1400
62789020 pajenegod B Oct. 17, 2019, 1:47 p.m. OK PyPy 2 TESTS 90 140 0 1400
62791701 aeternalis1 B Oct. 17, 2019, 1:53 p.m. OK PyPy 2 TESTS 90 155 0 1400
62815399 Mukundan314 B Oct. 17, 2019, 3:34 p.m. OK PyPy 2 TESTS 90 155 0 1400
62790245 _kawaii_neko_ B Oct. 17, 2019, 1:49 p.m. OK PyPy 2 TESTS 90 155 0 1400
67449404 aaa_bbb_ccc B Dec. 23, 2019, 2:34 a.m. OK PyPy 2 TESTS 90 155 204800 1400
62900617 nikich340 B Oct. 19, 2019, 3:58 a.m. OK PyPy 3 TESTS 90 139 0 1400
65902518 jasonsebastian B Nov. 28, 2019, 9:24 a.m. OK PyPy 3 TESTS 90 140 0 1400
68857221 gaidash B Jan. 15, 2020, 11:01 a.m. OK PyPy 3 TESTS 90 140 0 1400
68321977 nealzane B Jan. 6, 2020, 3:19 p.m. OK PyPy 3 TESTS 90 140 0 1400
66614640 Vyral B Dec. 11, 2019, 2:31 a.m. OK PyPy 3 TESTS 90 140 0 1400
65952732 io2k17 B Nov. 29, 2019, 11:33 a.m. OK PyPy 3 TESTS 90 140 0 1400
65805131 vjudge5 B Nov. 27, 2019, 8:34 a.m. OK PyPy 3 TESTS 90 140 0 1400
65747797 xmpl B Nov. 26, 2019, 12:54 p.m. OK PyPy 3 TESTS 90 140 0 1400
65734267 Tihohon B Nov. 26, 2019, 6:56 a.m. OK PyPy 3 TESTS 90 140 0 1400
65726408 kchau B Nov. 25, 2019, 11:47 p.m. OK PyPy 3 TESTS 90 140 0 1400
62849101 Madhur1906 B Oct. 18, 2019, 6:36 a.m. OK Python 2 TESTS 90 187 0 1400
62821111 pktyagi1 B Oct. 17, 2019, 4:49 p.m. OK Python 2 TESTS 90 187 0 1400
62807499 shubhankarsharma00 B Oct. 17, 2019, 2:52 p.m. OK Python 2 TESTS 90 202 0 1400
62793435 WileE.Coyote B Oct. 17, 2019, 1:57 p.m. OK Python 2 TESTS 90 202 0 1400
62792627 striver_79 B Oct. 17, 2019, 1:55 p.m. OK Python 2 TESTS 90 202 0 1400
62811537 Pogba_ B Oct. 17, 2019, 3:14 p.m. OK Python 2 TESTS 90 218 0 1400
64541354 vjudge2 B Nov. 8, 2019, 6:48 p.m. OK Python 3 TESTS 90 109 0 1400
63383323 atharva456 B Oct. 25, 2019, 1:05 p.m. OK Python 3 TESTS 90 109 0 1400
63502436 Makisto B Oct. 26, 2019, 5:40 p.m. OK Python 3 TESTS 90 109 0 1400
63691030 MilkyKnight B Oct. 29, 2019, 2:38 a.m. OK Python 3 TESTS 90 109 0 1400
64512160 dyatkovskiy B Nov. 8, 2019, 9:12 a.m. OK Python 3 TESTS 90 109 0 1400
65604551 slowpokk1231 B Nov. 23, 2019, 7:52 p.m. OK Python 3 TESTS 90 109 0 1400
65604580 D9RS B Nov. 23, 2019, 7:52 p.m. OK Python 3 TESTS 90 109 0 1400
65925538 shivank98 B Nov. 28, 2019, 6:07 p.m. OK Python 3 TESTS 90 109 0 1400
66435321 optimistic11 smart_hard j412 B Dec. 7, 2019, 5:53 a.m. OK Python 3 TESTS 90 109 0 1400
69188096 erickjohnross B Jan. 20, 2020, 12:39 p.m. OK Python 3 TESTS 90 109 0 1400
62810280 super_hook_girl_lover B Oct. 17, 2019, 3:07 p.m. OK Ruby TESTS 90 77 102400 1400
62796544 rinzu B Oct. 17, 2019, 2:06 p.m. OK Ruby TESTS 90 92 102400 1400
62795105 nemi_zzz B Oct. 17, 2019, 2:02 p.m. OK Ruby TESTS 90 93 102400 1400
62803310 bor.is B Oct. 17, 2019, 2:32 p.m. OK Rust TESTS 90 31 0 1400
62785952 sansen B Oct. 17, 2019, 1:41 p.m. OK Rust TESTS 90 31 0 1400
63622380 clrcldy B Oct. 28, 2019, 12:28 a.m. OK Rust TESTS 90 31 0 1400
62790714 wrick B Oct. 17, 2019, 1:50 p.m. OK Scala TESTS 90 436 0 1400

remove filters

Back to search problems