Codeforces Round 447 (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
894 Codeforces Round 447 (Div. 2) FINISHED False 7200 226425923 Nov. 19, 2017, 1:55 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 4501 ) B Ralph And His Magic Field PROGRAMMING combinatorics constructive algorithms math number theory 1800

B"Ralph has a magic field which is divided into n xe2 x80 x89 xc3 x97 xe2 x80 x89m blocks. That is to say, there are n rows and m columns on the field. Ralph can put an integer in each block. However, the magic field doesn't always work properly. It works only if the product of integers in each row and each column equals to k, where k is either 1 or -1. Now Ralph wants you to figure out the number of ways to put numbers in each block in such a way that the magic field works properly. Two ways are considered different if and only if there exists at least one block where the numbers in the first way and in the second way are different. You are asked to output the answer modulo 1000000007 xe2 x80 x89= xe2 x80 x89109 xe2 x80 x89+ xe2 x80 x897. Note that there is no range of the numbers to put in the blocks, but we can prove that the answer is not infinity. The only line contains three integers n, m and k (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n, xe2 x80 x89m xe2 x80 x89 xe2 x89 xa4 xe2 x80 x891018, k is either 1 or -1). Print a single number denoting the answer modulo 1000000007. In the first example the only way is to put -1 into the only block. In the second example the only way is to put 1 into every block. "...

Tutorials

Codeforces Round #447 (Div.2 Only) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
32490032 Hahahahahahahhahaha B Nov. 20, 2017, 5:38 a.m. OK Clang++17 Diagnostics TESTS 29 30 0 1800
51547852 abdelrahman010 B March 19, 2019, 9:18 p.m. OK Clang++17 Diagnostics TESTS 29 46 102400 1800
32472360 nanae1914 B Nov. 19, 2017, 3:31 p.m. OK D TESTS 29 30 2969600 1800
32467759 ruban B Nov. 19, 2017, 2:54 p.m. OK Delphi TESTS 29 15 2560000 1800
32490250 __peossp B Nov. 20, 2017, 5:51 a.m. OK FPC TESTS 29 15 102400 1800
32504866 nhatdanbgvt B Nov. 20, 2017, 3:50 p.m. OK FPC TESTS 29 15 102400 1800
32652589 rabbitcxk B Nov. 25, 2017, 4:40 p.m. OK FPC TESTS 29 15 1638400 1800
32554530 vjudge3 B Nov. 22, 2017, 3:04 p.m. OK GNU C TESTS 29 15 0 1800
32564681 rdd6584 B Nov. 23, 2017, 2:08 a.m. OK GNU C TESTS 29 15 0 1800
32507300 Voja03 B Nov. 20, 2017, 5:27 p.m. OK GNU C TESTS 29 15 0 1800
32505627 zz_zigzag B Nov. 20, 2017, 4:19 p.m. OK GNU C TESTS 29 15 0 1800
32547299 vjudge2 B Nov. 22, 2017, 10:52 a.m. OK GNU C TESTS 29 15 0 1800
32616460 ramaravishankar B Nov. 24, 2017, 9:56 a.m. OK GNU C TESTS 29 15 102400 1800
32489064 Faimerth B Nov. 20, 2017, 4:32 a.m. OK GNU C TESTS 29 15 1024000 1800
34884259 anirudhbansal B Feb. 3, 2018, 6:21 a.m. OK GNU C TESTS 29 15 1843200 1800
34558554 rainboy B Jan. 25, 2018, 9:31 p.m. OK GNU C TESTS 29 15 1843200 1800
32468571 xzm2020 B Nov. 19, 2017, 3 p.m. OK GNU C TESTS 29 15 1843200 1800
39062770 vjudge5 B June 9, 2018, 7:26 a.m. OK GNU C++ TESTS 29 15 0 1800
39591779 luogu_bot4 B June 24, 2018, 6:23 a.m. OK GNU C++ TESTS 29 15 0 1800
32572384 Scut82 B Nov. 23, 2017, 10:44 a.m. OK GNU C++ TESTS 29 15 0 1800
32571556 vjudge2 B Nov. 23, 2017, 10:04 a.m. OK GNU C++ TESTS 29 15 0 1800
32571541 vjudge2 B Nov. 23, 2017, 10:03 a.m. OK GNU C++ TESTS 29 15 0 1800
32570854 Scut82 B Nov. 23, 2017, 9:31 a.m. OK GNU C++ TESTS 29 15 0 1800
32570373 CoffeeDog B Nov. 23, 2017, 9:04 a.m. OK GNU C++ TESTS 29 15 0 1800
32569300 Passenger B Nov. 23, 2017, 8:08 a.m. OK GNU C++ TESTS 29 15 0 1800
32569138 sdcgvhgj B Nov. 23, 2017, 8 a.m. OK GNU C++ TESTS 29 15 0 1800
32568333 aboAdnan B Nov. 23, 2017, 7:16 a.m. OK GNU C++ TESTS 29 15 0 1800
33045765 alexey.orlov B Dec. 9, 2017, 10:27 a.m. OK GNU C11 TESTS 29 15 1843200 1800
32714849 xiao-xiao B Nov. 27, 2017, 12:41 p.m. OK GNU C11 TESTS 29 15 1843200 1800
32659864 Smurf1 B Nov. 26, 2017, 2:10 a.m. OK GNU C11 TESTS 29 15 1843200 1800
32659845 Smurf1 B Nov. 26, 2017, 2:09 a.m. OK GNU C11 TESTS 29 31 1843200 1800
40338328 Re_xy B July 14, 2018, 3:42 p.m. OK GNU C++11 TESTS 29 15 0 1800
40332934 Dmaxiya B July 14, 2018, 3:17 p.m. OK GNU C++11 TESTS 29 15 0 1800
40090431 ol1v3r B July 8, 2018, 4:30 p.m. OK GNU C++11 TESTS 29 15 0 1800
32575507 zhappy_xy B Nov. 23, 2017, 12:48 p.m. OK GNU C++11 TESTS 29 15 0 1800
32575250 yezi1000 B Nov. 23, 2017, 12:38 p.m. OK GNU C++11 TESTS 29 15 0 1800
32575194 bolt082 B Nov. 23, 2017, 12:36 p.m. OK GNU C++11 TESTS 29 15 0 1800
32573890 pipishrimp B Nov. 23, 2017, 11:48 a.m. OK GNU C++11 TESTS 29 15 0 1800
32570923 ALIKHM0 B Nov. 23, 2017, 9:34 a.m. OK GNU C++11 TESTS 29 15 0 1800
32568481 ln0411 B Nov. 23, 2017, 7:24 a.m. OK GNU C++11 TESTS 29 15 0 1800
32568311 The-Legend B Nov. 23, 2017, 7:14 a.m. OK GNU C++11 TESTS 29 15 0 1800
50685027 YJU B March 2, 2019, 1:16 p.m. OK GNU C++14 TESTS 29 15 0 1800
55327270 Wu-Kong B June 9, 2019, 8:51 a.m. OK GNU C++14 TESTS 29 15 0 1800
53428672 bachtruoq B April 27, 2019, 3:01 p.m. OK GNU C++14 TESTS 29 15 0 1800
51370597 Tarjan B March 16, 2019, 11:45 a.m. OK GNU C++14 TESTS 29 15 0 1800
57451744 vjudge2 B July 21, 2019, 9:58 a.m. OK GNU C++14 TESTS 29 15 0 1800
51211467 xyq0220 B March 12, 2019, 8:08 a.m. OK GNU C++14 TESTS 29 15 0 1800
66674006 akkipoonia B Dec. 12, 2019, 10:33 a.m. OK GNU C++14 TESTS 29 15 0 1800
61239209 gokul.raj B Sept. 24, 2019, 7:13 p.m. OK GNU C++14 TESTS 29 15 0 1800
58665038 Khalil_Bay B Aug. 12, 2019, 12:19 p.m. OK GNU C++14 TESTS 29 15 0 1800
57787903 Chou1122 B July 26, 2019, 8:27 a.m. OK GNU C++14 TESTS 29 15 0 1800
58127102 k24 B Aug. 1, 2019, 12:58 p.m. OK GNU C++17 TESTS 29 15 0 1800
67624781 Lemillion02 B Dec. 25, 2019, 8:51 p.m. OK GNU C++17 TESTS 29 15 0 1800
66264756 misir B Dec. 4, 2019, 9:57 a.m. OK GNU C++17 TESTS 29 15 0 1800
66263000 Maruf089 B Dec. 4, 2019, 9:13 a.m. OK GNU C++17 TESTS 29 15 0 1800
64844051 marksman_ B Nov. 13, 2019, 5:03 p.m. OK GNU C++17 TESTS 29 15 0 1800
64206473 ali_tavakoli B Nov. 4, 2019, 1 p.m. OK GNU C++17 TESTS 29 15 0 1800
63202719 m.hasan01 B Oct. 22, 2019, 9:32 p.m. OK GNU C++17 TESTS 29 15 0 1800
61586203 Juve45 B Oct. 1, 2019, 5:03 a.m. OK GNU C++17 TESTS 29 15 0 1800
58502291 66990208 B Aug. 9, 2019, 2:50 p.m. OK GNU C++17 TESTS 29 15 0 1800
56672661 vjudge3 B July 7, 2019, 1:52 p.m. OK GNU C++17 TESTS 29 15 0 1800
32509894 aiy12 B Nov. 20, 2017, 7:48 p.m. OK GNU C++17 Diagnostics TESTS 29 795 0 1800
32536023 sagar_97 B Nov. 21, 2017, 9:11 p.m. OK GNU C++17 Diagnostics TESTS 29 795 0 1800
32501684 Acforgood B Nov. 20, 2017, 1:51 p.m. OK GNU C++17 Diagnostics TESTS 29 795 0 1800
32809468 Necrozma B Nov. 30, 2017, 3:21 p.m. OK GNU C++17 Diagnostics TESTS 29 795 100966400 1800
32610504 scbjtu B Nov. 24, 2017, 4:53 a.m. OK GNU C++17 Diagnostics TESTS 29 810 99123200 1800
32780692 huangdanning B Nov. 29, 2017, 12:45 p.m. OK GNU C++17 Diagnostics TESTS 29 810 100966400 1800
33585906 nysanier B Dec. 24, 2017, 7:01 a.m. OK Go TESTS 29 15 22937600 1800
32845755 sighingnow B Dec. 2, 2017, 3:41 a.m. OK Haskell TESTS 29 15 53248000 1800
32845724 sighingnow B Dec. 2, 2017, 3:39 a.m. OK Haskell TESTS 29 31 53248000 1800
32530682 ragad_ag B Nov. 21, 2017, 4:16 p.m. OK Java 8 TESTS 29 109 0 1800
68039726 chojh1222 B Jan. 1, 2020, 1:45 p.m. OK Java 8 TESTS 29 109 0 1800
58233684 supriya14 B Aug. 3, 2019, 6:14 p.m. OK Java 8 TESTS 29 109 0 1800
58181544 caoash B Aug. 2, 2019, 3:23 p.m. OK Java 8 TESTS 29 109 0 1800
53086701 wadissimo B April 21, 2019, 9:15 a.m. OK Java 8 TESTS 29 109 0 1800
50257056 Ahmed_Diab B Feb. 20, 2019, 8:21 p.m. OK Java 8 TESTS 29 109 0 1800
49866935 luisligunas B Feb. 13, 2019, 12:22 p.m. OK Java 8 TESTS 29 109 0 1800
48393906 Ostad_George B Jan. 14, 2019, 4:42 p.m. OK Java 8 TESTS 29 109 0 1800
32504600 IDzekh B Nov. 20, 2017, 3:40 p.m. OK Java 8 TESTS 29 109 0 1800
32489436 finnlidbetter B Nov. 20, 2017, 4:58 a.m. OK Java 8 TESTS 29 109 0 1800
32478274 ramil.agger B Nov. 19, 2017, 4:51 p.m. OK Kotlin TESTS 29 124 20684800 1800
32478353 SlavaG B Nov. 19, 2017, 4:54 p.m. OK Kotlin TESTS 29 124 20684800 1800
32478786 SlavaG B Nov. 19, 2017, 5:06 p.m. OK Kotlin TESTS 29 124 20684800 1800
32538257 Esuhi B Nov. 22, 2017, 1:10 a.m. OK Kotlin TESTS 29 171 1331200 1800
52003566 hongquanntct B March 30, 2019, 7:21 a.m. OK Mono C# TESTS 29 46 0 1800
32489363 mban259 B Nov. 20, 2017, 4:54 a.m. OK Mono C# TESTS 29 46 102400 1800
61228549 hyzhangzhy B Sept. 24, 2019, 3:55 p.m. OK Mono C# TESTS 29 62 3584000 1800
32543368 sanyaocangku B Nov. 22, 2017, 7:51 a.m. OK MS C# TESTS 29 46 102400 1800
34458690 magneet B Jan. 22, 2018, 7:10 p.m. OK MS C# TESTS 29 46 9318400 1800
32484459 branimir116 B Nov. 19, 2017, 9:26 p.m. OK MS C# TESTS 29 46 9318400 1800
34586476 KyleSkabelund B Jan. 26, 2018, 7:28 p.m. OK MS C# TESTS 29 46 9420800 1800
32482453 renadeen B Nov. 19, 2017, 7:32 p.m. OK MS C# TESTS 29 46 9625600 1800
32537133 lionvs13 B Nov. 21, 2017, 10:37 p.m. OK MS C# TESTS 29 61 2560000 1800
32529824 Coder_D B Nov. 21, 2017, 3:39 p.m. OK MS C# TESTS 29 62 2560000 1800
32494808 jaehoj B Nov. 20, 2017, 9:37 a.m. OK MS C++ TESTS 29 15 0 1800
50788078 vjudge2 B March 4, 2019, 2:17 p.m. OK MS C++ TESTS 29 15 0 1800
40913617 vjudge4 B July 29, 2018, 10:21 a.m. OK MS C++ TESTS 29 15 0 1800
32543726 merzgling B Nov. 22, 2017, 8:06 a.m. OK MS C++ TESTS 29 15 0 1800
32534825 oraheem B Nov. 21, 2017, 8:02 p.m. OK MS C++ TESTS 29 15 0 1800
32518815 jintian1529 B Nov. 21, 2017, 7:44 a.m. OK MS C++ TESTS 29 15 0 1800
32502184 jk_qq B Nov. 20, 2017, 2:09 p.m. OK MS C++ TESTS 29 15 0 1800
32501591 O_Ramanujan B Nov. 20, 2017, 1:47 p.m. OK MS C++ TESTS 29 15 0 1800
32494143 suzie_lin B Nov. 20, 2017, 9:06 a.m. OK MS C++ TESTS 29 15 0 1800
32493188 acrux B Nov. 20, 2017, 8:17 a.m. OK MS C++ TESTS 29 15 0 1800
51455774 CtrlAlt B March 18, 2019, 5 p.m. OK MS C++ 2017 TESTS 29 31 0 1800
57870671 yuanhaowei B July 28, 2019, 1:29 a.m. OK MS C++ 2017 TESTS 29 31 0 1800
66199803 AlleriaLi B Dec. 2, 2019, 8:16 p.m. OK MS C++ 2017 TESTS 29 31 0 1800
54062579 Timonnable B May 13, 2019, 11:55 a.m. OK MS C++ 2017 TESTS 29 31 102400 1800
69951070 vjudge5 B Feb. 1, 2020, 8:57 a.m. OK MS C++ 2017 TESTS 29 31 307200 1800
32637241 oos1111 B Nov. 25, 2017, 5:19 a.m. OK Ocaml TESTS 29 15 3891200 1800
32507685 shiki7 B Nov. 20, 2017, 5:46 p.m. OK PyPy 2 TESTS 29 62 0 1800
33526748 Yash_ B Dec. 23, 2017, 6:07 a.m. OK PyPy 2 TESTS 29 62 21196800 1800
32476284 WileE.Coyote B Nov. 19, 2017, 4:17 p.m. OK PyPy 2 TESTS 29 62 21196800 1800
32470152 godmar B Nov. 19, 2017, 3:13 p.m. OK PyPy 2 TESTS 29 62 21196800 1800
32467655 cchao B Nov. 19, 2017, 2:53 p.m. OK PyPy 2 TESTS 29 62 21196800 1800
32546027 unused B Nov. 22, 2017, 9:44 a.m. OK PyPy 2 TESTS 29 77 0 1800
66667492 anshuman16423 B Dec. 12, 2019, 7:48 a.m. OK PyPy 2 TESTS 29 155 0 1800
51463683 gatsko B March 18, 2019, 10:02 p.m. OK PyPy 2 TESTS 29 218 7782400 1800
34951972 kissed B Feb. 5, 2018, 6:12 p.m. OK PyPy 3 TESTS 29 62 19968000 1800
32491471 metamemelord B Nov. 20, 2017, 7:01 a.m. OK PyPy 3 TESTS 29 93 0 1800
32479937 DSRub B Nov. 19, 2017, 5:43 p.m. OK PyPy 3 TESTS 29 93 23347200 1800
32473366 Naoki_M B Nov. 19, 2017, 3:39 p.m. OK PyPy 3 TESTS 29 108 23347200 1800
32469328 madn B Nov. 19, 2017, 3:06 p.m. OK PyPy 3 TESTS 29 108 23347200 1800
32492460 vjudge3 B Nov. 20, 2017, 7:50 a.m. OK PyPy 3 TESTS 29 109 0 1800
32469659 Candyman B Nov. 19, 2017, 3:09 p.m. OK PyPy 3 TESTS 29 109 23347200 1800
68096354 pac-man21 B Jan. 2, 2020, 9:05 p.m. OK PyPy 3 TESTS 29 140 0 1800
40571090 vjudge3 B July 20, 2018, 8:12 a.m. OK PyPy 3 TESTS 29 140 0 1800
68997046 sudoSieg B Jan. 17, 2020, 5:50 p.m. OK PyPy 3 TESTS 29 155 0 1800
32545965 bibibibi B Nov. 22, 2017, 9:41 a.m. OK Python 2 TESTS 29 46 0 1800
32514428 dthung1602 B Nov. 21, 2017, 2:30 a.m. OK Python 2 TESTS 29 61 0 1800
32510923 bilau_de_campina B Nov. 20, 2017, 8:43 p.m. OK Python 2 TESTS 29 61 0 1800
33757175 nealzane B Dec. 29, 2017, 10:40 a.m. OK Python 2 TESTS 29 61 4608000 1800
32469446 Policarpo B Nov. 19, 2017, 3:07 p.m. OK Python 2 TESTS 29 61 4608000 1800
32536296 Slonik B Nov. 21, 2017, 9:31 p.m. OK Python 2 TESTS 29 62 0 1800
32520202 CHVRCHES B Nov. 21, 2017, 8:56 a.m. OK Python 2 TESTS 29 62 0 1800
32517600 ManasG B Nov. 21, 2017, 6:39 a.m. OK Python 2 TESTS 29 62 0 1800
32501028 dimasta B Nov. 20, 2017, 1:30 p.m. OK Python 2 TESTS 29 62 0 1800
32500956 chessdroid B Nov. 20, 2017, 1:28 p.m. OK Python 2 TESTS 29 62 0 1800
32531644 banoresaurabh B Nov. 21, 2017, 5:03 p.m. OK Python 3 TESTS 29 61 0 1800
32505028 PEDY4000 B Nov. 20, 2017, 3:56 p.m. OK Python 3 TESTS 29 61 0 1800
32504508 A.Freeman B Nov. 20, 2017, 3:36 p.m. OK Python 3 TESTS 29 61 0 1800
32499307 PeregudovSergey B Nov. 20, 2017, 12:33 p.m. OK Python 3 TESTS 29 61 0 1800
32489007 Vasiliy_48 B Nov. 20, 2017, 4:27 a.m. OK Python 3 TESTS 29 61 0 1800
33282570 jessicaTheBoss B Dec. 16, 2017, 7:04 a.m. OK Python 3 TESTS 29 61 5529600 1800
32656140 b07fly B Nov. 25, 2017, 8:02 p.m. OK Python 3 TESTS 29 61 5529600 1800
32483236 darth_coder B Nov. 19, 2017, 8:13 p.m. OK Python 3 TESTS 29 61 5529600 1800
32477781 lrvideckis B Nov. 19, 2017, 4:40 p.m. OK Python 3 TESTS 29 61 5529600 1800
32470975 fsh0524 B Nov. 19, 2017, 3:20 p.m. OK Python 3 TESTS 29 61 5529600 1800
32486381 polyglot B Nov. 20, 2017, 12:03 a.m. OK Ruby TESTS 29 62 6451200 1800
32478106 MishaPrigara B Nov. 19, 2017, 4:47 p.m. OK Ruby TESTS 29 78 6451200 1800
32606604 eugene.y.che B Nov. 23, 2017, 10:58 p.m. OK Rust TESTS 29 15 1433600 1800
32483743 Hillmouse B Nov. 19, 2017, 8:41 p.m. OK Rust TESTS 29 15 1433600 1800
32479686 dandersonw B Nov. 19, 2017, 5:35 p.m. OK Scala TESTS 29 482 38912000 1800
33911060 IvanDyachenko B Jan. 4, 2018, 8:14 p.m. OK Scala TESTS 29 483 39321600 1800

remove filters

Back to search problems