Codeforces Round 612 (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
1287 Codeforces Round 612 (Div. 2) FINISHED False 7200 153590099 Jan. 5, 2020, 2:05 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 9473 ) B Hyperset PROGRAMMING brute force data structures implementation 1500

B'Bees Alice and Alesya gave beekeeper Polina famous card game "Set" as a Christmas present. The deck consists of cards that vary in four features across three options for each kind of feature: number of shapes, shape, shading, and color. In this game, some combinations of three cards are said to make up a set. For every feature -- color, number, shape, and shading -- the three cards must display that feature as either all the same, or pairwise different. The picture below shows how sets look. Polina came up with a new game called "Hyperset". In her game, there are n cards with k features, each feature has three possible values: "S", "E", or "T". The original "Set" game can be viewed as "Hyperset" with k = 4 . Similarly to the original game, three cards form a set, if all features are the same for all cards or are pairwise different. The goal of the game is to compute the number of ways to choose three cards that form a set. Unfortunately, winter holidays have come to an end, and it 's time for Polina to go to school. Help Polina find the number of sets among the cards lying on the table. The first line of each test contains two integers n and k ( 1 <= n <= 1500 , 1 <= k <= 30 ) -- number of cards and number of features. Each of the following n lines contains a card description: a string consisting of k letters "S", "E", "T". The i -th character of this string decribes the i -th feature of that card. All cards are distinct. Output a single integer -- the number of ways to choose three cards that form a set. In the third example test, these two triples of cards are sets: '...

Tutorials

Codeforces Round #612 - Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
68824061 darkhole B Jan. 14, 2020, 6:27 p.m. OK D TESTS 52 592 11980800 1500
68257111 daut-dlang B Jan. 5, 2020, 2:39 p.m. OK D TESTS 52 1122 4198400 1500
68329293 ruban B Jan. 6, 2020, 6:04 p.m. OK Delphi TESTS 52 982 134041600 1500
68259309 Craspedacusta B Jan. 5, 2020, 2:47 p.m. OK FPC TESTS 52 2511 409600 1500
68554646 canhtoanxyz B Jan. 10, 2020, 4:34 p.m. OK FPC TESTS 52 2589 204800 1500
69230514 LaSWeeG B Jan. 21, 2020, 9:17 a.m. OK FPC TESTS 52 2995 204800 1500
68291387 vladislav_k B Jan. 5, 2020, 9:34 p.m. OK GNU C11 TESTS 52 217 0 1500
69549899 liuhanguang B Jan. 26, 2020, 5:53 a.m. OK GNU C11 TESTS 52 327 0 1500
68256397 pengin_2000 B Jan. 5, 2020, 2:37 p.m. OK GNU C11 TESTS 52 374 102400 1500
68276212 thegreatkwanghyeon B Jan. 5, 2020, 3:57 p.m. OK GNU C11 TESTS 52 451 102400 1500
68250557 mikeCAT B Jan. 5, 2020, 2:19 p.m. OK GNU C11 TESTS 52 499 102400 1500
69455638 malmal B Jan. 24, 2020, 8:29 a.m. OK GNU C11 TESTS 52 499 204800 1500
68766332 liuhongzhe B Jan. 14, 2020, 10:02 a.m. OK GNU C11 TESTS 52 514 102400 1500
68294064 kernel.bin B Jan. 6, 2020, 12:44 a.m. OK GNU C11 TESTS 52 670 102400 1500
68459488 ananaygupta70 B Jan. 9, 2020, 5:33 p.m. OK GNU C11 TESTS 52 702 0 1500
68351293 SHawnHardy B Jan. 7, 2020, 9:58 a.m. OK GNU C++11 TESTS 52 78 921600 1500
68354922 SHawnHardy B Jan. 7, 2020, 11:37 a.m. OK GNU C++11 TESTS 52 78 921600 1500
68355117 SHawnHardy B Jan. 7, 2020, 11:43 a.m. OK GNU C++11 TESTS 52 78 921600 1500
68257524 HaoxuanXIE B Jan. 5, 2020, 2:41 p.m. OK GNU C++11 TESTS 52 78 1638400 1500
69553278 temp06 B Jan. 26, 2020, 7:32 a.m. OK GNU C++11 TESTS 52 78 2048000 1500
68938624 0qo_oq0 B Jan. 16, 2020, 1:41 p.m. OK GNU C++11 TESTS 52 93 204800 1500
68298378 ZhangYe B Jan. 6, 2020, 4:48 a.m. OK GNU C++11 TESTS 52 108 204800 1500
68435109 ix35 B Jan. 9, 2020, 8:39 a.m. OK GNU C++11 TESTS 52 155 3174400 1500
68261106 Dilhao B Jan. 5, 2020, 2:55 p.m. OK GNU C++11 TESTS 52 156 1433600 1500
69297462 wyy2004 B Jan. 22, 2020, 12:44 p.m. OK GNU C++11 TESTS 52 156 3174400 1500
68386840 _HonEy B Jan. 8, 2020, 6:24 a.m. OK GNU C++14 TESTS 52 93 108748800 1500
68938132 HighLights B Jan. 16, 2020, 1:32 p.m. OK GNU C++14 TESTS 52 108 307200 1500
68872804 vjudge1 B Jan. 15, 2020, 3:51 p.m. OK GNU C++14 TESTS 52 109 307200 1500
68872673 vjudge2 B Jan. 15, 2020, 3:49 p.m. OK GNU C++14 TESTS 52 109 614400 1500
68872507 vjudge5 B Jan. 15, 2020, 3:45 p.m. OK GNU C++14 TESTS 52 124 614400 1500
68298638 KisekiPurin2019 B Jan. 6, 2020, 5 a.m. OK GNU C++14 TESTS 52 139 921600 1500
68254536 Safayat B Jan. 5, 2020, 2:31 p.m. OK GNU C++14 TESTS 52 155 409600 1500
68261780 Divia_Negoescu B Jan. 5, 2020, 2:57 p.m. OK GNU C++14 TESTS 52 156 102400 1500
68264592 humit B Jan. 5, 2020, 3:09 p.m. OK GNU C++14 TESTS 52 156 204800 1500
68298881 KisekiPurin2019 B Jan. 6, 2020, 5:12 a.m. OK GNU C++14 TESTS 52 187 409600 1500
68992931 dserrg B Jan. 17, 2020, 4 p.m. OK GNU C++17 TESTS 52 46 0 1500
68865469 Xellos B Jan. 15, 2020, 1:26 p.m. OK GNU C++17 TESTS 52 46 204800 1500
68320324 eunchan115 B Jan. 6, 2020, 2:43 p.m. OK GNU C++17 TESTS 52 46 1843200 1500
68472518 .__. B Jan. 10, 2020, 3:01 a.m. OK GNU C++17 TESTS 52 46 9523200 1500
68472471 .__. B Jan. 10, 2020, 2:59 a.m. OK GNU C++17 TESTS 52 46 12595200 1500
68472210 .__. B Jan. 10, 2020, 2:46 a.m. OK GNU C++17 TESTS 52 62 204800 1500
68680793 ziggy B Jan. 12, 2020, 9:49 p.m. OK GNU C++17 TESTS 52 62 204800 1500
68472276 .__. B Jan. 10, 2020, 2:49 a.m. OK GNU C++17 TESTS 52 62 12800000 1500
68472639 .__. B Jan. 10, 2020, 3:07 a.m. OK GNU C++17 TESTS 52 62 90214400 1500
68472124 .__. B Jan. 10, 2020, 2:42 a.m. OK GNU C++17 TESTS 52 77 102400 1500
68987777 DanWallgun B Jan. 17, 2020, 1:07 p.m. OK Go TESTS 52 483 0 1500
68254550 u1s1reallycai B Jan. 5, 2020, 2:31 p.m. OK Go TESTS 52 716 9932800 1500
68297815 ktateish B Jan. 6, 2020, 4:24 a.m. OK Go TESTS 52 1700 10035200 1500
68376383 272.6.623 B Jan. 7, 2020, 8:10 p.m. OK Go TESTS 52 1872 5324800 1500
68301672 pain_nagato B Jan. 6, 2020, 6:56 a.m. OK Go TESTS 52 2449 33075200 1500
68330388 Russell_Emerine B Jan. 6, 2020, 6:32 p.m. OK Haskell TESTS 52 1466 1228800 1500
68255991 adamjamil B Jan. 5, 2020, 2:35 p.m. OK Java 11 TESTS 52 404 0 1500
68280919 mikit B Jan. 5, 2020, 5:08 p.m. OK Java 11 TESTS 52 530 0 1500
68265342 sarthakmanna B Jan. 5, 2020, 3:12 p.m. OK Java 11 TESTS 52 717 0 1500
68293853 lifeiteng B Jan. 6, 2020, 12:27 a.m. OK Java 11 TESTS 52 810 0 1500
68288910 lightseba B Jan. 5, 2020, 7:53 p.m. OK Java 11 TESTS 52 811 0 1500
69002338 Chuchi787 B Jan. 17, 2020, 8:18 p.m. OK Java 11 TESTS 52 889 0 1500
68573771 enricogi B Jan. 11, 2020, 3:55 a.m. OK Java 11 TESTS 52 889 0 1500
68573580 enricogi B Jan. 11, 2020, 3:49 a.m. OK Java 11 TESTS 52 904 0 1500
68337424 bdomokos B Jan. 6, 2020, 11:37 p.m. OK Java 11 TESTS 52 919 0 1500
68258072 potatmen B Jan. 5, 2020, 2:43 p.m. OK Java 11 TESTS 52 935 0 1500
68372524 AnandOza B Jan. 7, 2020, 6:16 p.m. OK Java 8 TESTS 52 327 0 1500
68687593 eng_hardik B Jan. 13, 2020, 4:24 a.m. OK Java 8 TESTS 52 358 0 1500
68254121 jenish9599 B Jan. 5, 2020, 2:29 p.m. OK Java 8 TESTS 52 374 0 1500
68318891 mufaddalnaya B Jan. 6, 2020, 2:12 p.m. OK Java 8 TESTS 52 390 0 1500
68310470 Keyur21 B Jan. 6, 2020, 10:57 a.m. OK Java 8 TESTS 52 405 0 1500
68259263 Megabyte B Jan. 5, 2020, 2:47 p.m. OK Java 8 TESTS 52 405 0 1500
68358169 bhavyseth B Jan. 7, 2020, 1 p.m. OK Java 8 TESTS 52 467 0 1500
68255516 utsav_deep B Jan. 5, 2020, 2:34 p.m. OK Java 8 TESTS 52 467 0 1500
68458180 Pkyfen B Jan. 9, 2020, 5:04 p.m. OK Java 8 TESTS 52 483 0 1500
68267767 _apurv_ B Jan. 5, 2020, 3:22 p.m. OK Java 8 TESTS 52 483 0 1500
68268084 watarimaycry2 B Jan. 5, 2020, 3:23 p.m. OK JavaScript TESTS 52 1278 3993600 1500
68298462 anatawa12 B Jan. 6, 2020, 4:52 a.m. OK Kotlin TESTS 52 483 921600 1500
68357302 Spheniscine B Jan. 7, 2020, 12:39 p.m. OK Kotlin TESTS 52 561 204800 1500
68380771 Spheniscine B Jan. 8, 2020, 12:46 a.m. OK Kotlin TESTS 52 592 204800 1500
68263814 Arkabekuly_Mukhtar B Jan. 5, 2020, 3:06 p.m. OK Kotlin TESTS 52 685 204800 1500
68389669 Icceey B Jan. 8, 2020, 7:59 a.m. OK Kotlin TESTS 52 716 1331200 1500
68255720 bulkasmakom B Jan. 5, 2020, 2:34 p.m. OK Kotlin TESTS 52 857 0 1500
68252764 a11eca B Jan. 5, 2020, 2:25 p.m. OK Kotlin TESTS 52 967 1228800 1500
68350433 Spheniscine B Jan. 7, 2020, 9:33 a.m. OK Kotlin TESTS 52 1028 204800 1500
68629381 Rinat_ B Jan. 12, 2020, 1:43 a.m. OK Kotlin TESTS 52 2386 204800 1500
68376020 AsuraPro B Jan. 7, 2020, 7:57 p.m. OK Kotlin TESTS 52 2652 1331200 1500
68324608 TRR B Jan. 6, 2020, 4:21 p.m. OK Mono C# TESTS 52 639 102400 1500
68313773 nastya1199 B Jan. 6, 2020, 12:23 p.m. OK Mono C# TESTS 52 701 6860800 1500
68264658 fiver B Jan. 5, 2020, 3:09 p.m. OK Mono C# TESTS 52 779 217088000 1500
68292249 Anastasiya_Andreevna B Jan. 5, 2020, 10:22 p.m. OK Mono C# TESTS 52 857 102400 1500
68270336 plasma-effect B Jan. 5, 2020, 3:33 p.m. OK Mono C# TESTS 52 857 13004800 1500
68268536 anoopgupta166 B Jan. 5, 2020, 3:25 p.m. OK Mono C# TESTS 52 1310 6860800 1500
68325466 Yupiteru B Jan. 6, 2020, 4:42 p.m. OK Mono C# TESTS 52 1372 265932800 1500
68260522 VLukiantsev B Jan. 5, 2020, 2:52 p.m. OK Mono C# TESTS 52 1731 74137600 1500
68339475 thetansquared B Jan. 7, 2020, 2:04 a.m. OK Mono C# TESTS 52 1996 5222400 1500
68356973 balibalo756 B Jan. 7, 2020, 12:30 p.m. OK Mono C# TESTS 52 2995 6860800 1500
68356547 r57shell B Jan. 7, 2020, 12:21 p.m. OK MS C++ TESTS 52 46 307200 1500
68356690 r57shell B Jan. 7, 2020, 12:24 p.m. OK MS C++ TESTS 52 46 307200 1500
68356627 r57shell B Jan. 7, 2020, 12:22 p.m. OK MS C++ TESTS 52 46 307200 1500
68355124 r57shell B Jan. 7, 2020, 11:43 a.m. OK MS C++ TESTS 52 187 102400 1500
68354691 r57shell B Jan. 7, 2020, 11:31 a.m. OK MS C++ TESTS 52 358 102400 1500
68353575 r57shell B Jan. 7, 2020, 11 a.m. OK MS C++ TESTS 52 358 102400 1500
68298820 r57shell B Jan. 6, 2020, 5:09 a.m. OK MS C++ TESTS 52 436 512000 1500
68311822 r57shell B Jan. 6, 2020, 11:32 a.m. OK MS C++ TESTS 52 452 4300800 1500
68585518 rures B Jan. 11, 2020, 11:09 a.m. OK MS C++ TESTS 52 529 204800 1500
69021123 vjudge5 B Jan. 18, 2020, 6:23 a.m. OK MS C++ TESTS 52 561 102400 1500
68520786 forestlightelf B Jan. 10, 2020, 2:44 p.m. OK MS C++ 2017 TESTS 52 62 2048000 1500
68526499 forestlightelf B Jan. 10, 2020, 2:56 p.m. OK MS C++ 2017 TESTS 52 62 2048000 1500
68288813 AlexanderL B Jan. 5, 2020, 7:49 p.m. OK MS C++ 2017 TESTS 52 265 409600 1500
68275028 areo B Jan. 5, 2020, 3:53 p.m. OK MS C++ 2017 TESTS 52 499 512000 1500
68478064 vjudge4 B Jan. 10, 2020, 6:31 a.m. OK MS C++ 2017 TESTS 52 514 102400 1500
68289310 egardoz01 B Jan. 5, 2020, 8:06 p.m. OK MS C++ 2017 TESTS 52 514 307200 1500
68263798 beastie B Jan. 5, 2020, 3:06 p.m. OK MS C++ 2017 TESTS 52 546 512000 1500
68672350 Still_Theory B Jan. 12, 2020, 5:16 p.m. OK MS C++ 2017 TESTS 52 561 307200 1500
69525231 meanman B Jan. 25, 2020, 2:42 p.m. OK MS C++ 2017 TESTS 52 561 307200 1500
68395188 Phantom_ B Jan. 8, 2020, 10:42 a.m. OK MS C++ 2017 TESTS 52 577 204800 1500
68351138 BeanHeaDza B Jan. 7, 2020, 9:54 a.m. OK Node.js TESTS 52 2558 4710400 1500
68447059 aaa_bbb_ccc B Jan. 9, 2020, 1:04 p.m. OK PyPy 2 TESTS 52 1107 1331200 1500
68258339 Mukundan314 B Jan. 5, 2020, 2:44 p.m. OK PyPy 2 TESTS 52 1388 7884800 1500
68261332 Gaurav1 B Jan. 5, 2020, 2:55 p.m. OK PyPy 2 TESTS 52 1450 9318400 1500
68254511 SoSooding B Jan. 5, 2020, 2:30 p.m. OK PyPy 2 TESTS 52 1934 12390400 1500
68954799 bakchod_londa B Jan. 16, 2020, 7:35 p.m. OK PyPy 2 TESTS 52 1980 4505600 1500
68270298 anonymous0314 B Jan. 5, 2020, 3:33 p.m. OK PyPy 2 TESTS 52 2246 7577600 1500
68262717 iamprayush B Jan. 5, 2020, 3:01 p.m. OK PyPy 2 TESTS 52 2261 11161600 1500
68259674 yamatoumi B Jan. 5, 2020, 2:49 p.m. OK PyPy 2 TESTS 52 2588 6656000 1500
68740943 yumtam B Jan. 14, 2020, 1 a.m. OK PyPy 2 TESTS 52 2636 7577600 1500
69165055 pengyuhe B Jan. 20, 2020, 3:09 a.m. OK PyPy 2 TESTS 52 2698 195072000 1500
68326554 Kiri8128 B Jan. 6, 2020, 5:05 p.m. OK PyPy 3 TESTS 52 608 4096000 1500
68342020 Kiri8128 B Jan. 7, 2020, 4:34 a.m. OK PyPy 3 TESTS 52 608 4198400 1500
68260269 Shee11 B Jan. 5, 2020, 2:51 p.m. OK PyPy 3 TESTS 52 858 6144000 1500
68359855 orailly B Jan. 7, 2020, 1:40 p.m. OK PyPy 3 TESTS 52 872 4403200 1500
68359590 orailly B Jan. 7, 2020, 1:34 p.m. OK PyPy 3 TESTS 52 873 4300800 1500
68294402 IKnoom B Jan. 6, 2020, 1:08 a.m. OK PyPy 3 TESTS 52 919 4505600 1500
68609390 szawinis B Jan. 11, 2020, 3:09 p.m. OK PyPy 3 TESTS 52 935 3891200 1500
68609235 szawinis B Jan. 11, 2020, 3:06 p.m. OK PyPy 3 TESTS 52 935 3891200 1500
68289290 titia B Jan. 5, 2020, 8:05 p.m. OK PyPy 3 TESTS 52 1044 3379200 1500
68268660 FLOP B Jan. 5, 2020, 3:26 p.m. OK PyPy 3 TESTS 52 1044 7168000 1500
68342444 orailly B Jan. 7, 2020, 4:58 a.m. OK Python 3 TESTS 52 951 512000 1500
68357263 r57shell B Jan. 7, 2020, 12:38 p.m. OK Python 3 TESTS 52 967 409600 1500
68342008 Kiri8128 B Jan. 7, 2020, 4:34 a.m. OK Python 3 TESTS 52 982 409600 1500
68271044 muh_ashlah B Jan. 5, 2020, 3:36 p.m. OK Python 3 TESTS 52 982 4812800 1500
68357296 r57shell B Jan. 7, 2020, 12:39 p.m. OK Python 3 TESTS 52 1013 512000 1500
68357101 r57shell B Jan. 7, 2020, 12:34 p.m. OK Python 3 TESTS 52 1029 614400 1500
68326572 Kiri8128 B Jan. 6, 2020, 5:05 p.m. OK Python 3 TESTS 52 1263 409600 1500
68256231 manta1130 B Jan. 5, 2020, 2:36 p.m. OK Rust TESTS 52 1185 512000 1500

remove filters

Back to search problems