Codecraft-18 and Codeforces Round 458 (Div. 1 + Div. 2, combined)

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
914 Codecraft-18 and Codeforces Round 458 (Div. 1 + Div. 2, combined) FINISHED False 10800 220890311 Jan. 20, 2018, 3:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 8683 ) B Conan and Agasa play a Card Game PROGRAMMING games greedy implementation 1300

B'Edogawa Conan got tired of solving cases, and invited his friend, Professor Agasa, over. They decided to play a game of cards. Conan has n cards, and the i-th card has a number ai written on it. They take turns playing, starting with Conan. In each turn, the player chooses a card and removes it. Also, he removes all cards having a number strictly lesser than the number on the chosen card. Formally, if the player chooses the i-th card, he removes that card and removes the j-th card for all j such that aj xe2 x80 x89< xe2 x80 x89ai. A player loses if he cannot make a move on his turn, that is, he loses if there are no cards left. Predict the outcome of the game, assuming both players play optimally. The first line contains an integer n (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89105) -- the number of cards Conan has. The next line contains n integers a1, xe2 x80 x89a2, xe2 x80 x89..., xe2 x80 x89an (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89ai xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89105), where ai is the number on the i-th card. If Conan wins, print "Conan" (without quotes), otherwise print "Agasa" (without quotes). In the first example, Conan can just choose the card having number 7 on it and hence remove all the cards. After that, there are no cards left on Agasa 's turn. In the second example, no matter which card Conan chooses, there will be one one card left, which Agasa can choose. After that, there are no cards left when it becomes Conan 's turn again. '...

Tutorials

Tutorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
35223352 olga04 B Feb. 14, 2018, 5:33 a.m. OK FPC TESTS 91 31 2048000 1300
34963070 Slonik B Feb. 6, 2018, 7:04 a.m. OK FPC TESTS 91 31 2048000 1300
35054139 dambosin B Feb. 8, 2018, 10:26 a.m. OK FPC TESTS 91 31 2048000 1300
34741307 cODEalich B Jan. 31, 2018, 1:13 p.m. OK FPC TESTS 91 31 2048000 1300
34656979 rabbitcxk B Jan. 29, 2018, 9:46 a.m. OK FPC TESTS 91 31 2048000 1300
34627528 LeoPro B Jan. 28, 2018, 8:27 a.m. OK FPC TESTS 91 31 2048000 1300
34388617 1Demiurg B Jan. 20, 2018, 6:22 p.m. OK FPC TESTS 91 31 2048000 1300
34526598 Matfey B Jan. 24, 2018, 7:01 p.m. OK FPC TESTS 91 31 2457600 1300
57352281 jyxxmhc B July 20, 2019, 4:29 a.m. OK FPC TESTS 91 46 409600 1300
47516099 chaorenhaha B Dec. 26, 2018, 10:01 a.m. OK FPC TESTS 91 46 409600 1300
36207213 Naimur_Rahman_BSMRSTU B March 11, 2018, 5:46 p.m. OK GNU C TESTS 91 31 2252800 1300
35593345 lelelele B Feb. 23, 2018, 10:09 a.m. OK GNU C TESTS 91 31 2252800 1300
35354794 pranav3103 B Feb. 16, 2018, 3:50 p.m. OK GNU C TESTS 91 31 2252800 1300
35219373 joeberth B Feb. 13, 2018, 9:39 p.m. OK GNU C TESTS 91 31 2252800 1300
35097169 vjudge5 B Feb. 9, 2018, 3:59 p.m. OK GNU C TESTS 91 31 2252800 1300
34949911 alamkhan B Feb. 5, 2018, 4:42 p.m. OK GNU C TESTS 91 31 2252800 1300
34949758 alamkhan B Feb. 5, 2018, 4:36 p.m. OK GNU C TESTS 91 31 2252800 1300
34927740 triptesh_b B Feb. 4, 2018, 5:25 p.m. OK GNU C TESTS 91 31 2252800 1300
34725166 AATEST B Jan. 31, 2018, 3:07 a.m. OK GNU C TESTS 91 31 2252800 1300
34652681 jizhiyi B Jan. 29, 2018, 6:46 a.m. OK GNU C TESTS 91 31 2252800 1300
34570111 xuanyi B Jan. 26, 2018, 8:46 a.m. OK GNU C++ TESTS 91 15 2252800 1300
34965848 HeyByeSummerTime B Feb. 6, 2018, 9:16 a.m. OK GNU C++ TESTS 91 15 2457600 1300
34654555 yekehe B Jan. 29, 2018, 7:54 a.m. OK GNU C++ TESTS 91 15 2662400 1300
34400126 adzbr B Jan. 21, 2018, 4:27 a.m. OK GNU C++ TESTS 91 15 2867200 1300
34702466 Scut82 B Jan. 30, 2018, 8:25 a.m. OK GNU C++ TESTS 91 15 2867200 1300
34700735 Scut82 B Jan. 30, 2018, 7:12 a.m. OK GNU C++ TESTS 91 15 2867200 1300
34396213 redbag B Jan. 21, 2018, 1:11 a.m. OK GNU C++ TESTS 91 15 2867200 1300
34571724 vjudge2 B Jan. 26, 2018, 9:57 a.m. OK GNU C++ TESTS 91 15 3276800 1300
34700623 Scut82 B Jan. 30, 2018, 7:09 a.m. OK GNU C++ TESTS 91 15 5324800 1300
34397080 sweet_love B Jan. 21, 2018, 1:59 a.m. OK GNU C++ TESTS 91 30 10137600 1300
35672382 xiao-xiao B Feb. 25, 2018, 8:20 a.m. OK GNU C11 TESTS 91 31 2252800 1300
35087699 vjudge5 B Feb. 9, 2018, 11:28 a.m. OK GNU C11 TESTS 91 31 2662400 1300
34399073 2465806616 B Jan. 21, 2018, 3:35 a.m. OK GNU C11 TESTS 91 31 2662400 1300
57502212 vjudge1 B July 22, 2019, 10:40 a.m. OK GNU C11 TESTS 91 46 409600 1300
57502147 wzztcl B July 22, 2019, 10:39 a.m. OK GNU C11 TESTS 91 46 409600 1300
55981182 rubber_duckieOwOwO B June 23, 2019, 9:14 p.m. OK GNU C11 TESTS 91 46 409600 1300
57501982 wzztcl B July 22, 2019, 10:34 a.m. OK GNU C11 TESTS 91 46 819200 1300
67122144 raresmihai01 B Dec. 17, 2019, 6:38 p.m. OK GNU C11 TESTS 91 46 819200 1300
46759904 vjudge3 B Dec. 8, 2018, 12:54 p.m. OK GNU C11 TESTS 91 46 819200 1300
54261269 nihar_99 B May 17, 2019, 1:57 a.m. OK GNU C11 TESTS 91 46 819200 1300
34399659 binsjl B Jan. 21, 2018, 4:05 a.m. OK GNU C++11 TESTS 91 15 2252800 1300
34469159 Wavator B Jan. 23, 2018, 5:49 a.m. OK GNU C++11 TESTS 91 15 2457600 1300
34434524 yizhixiaokong B Jan. 22, 2018, 6:18 a.m. OK GNU C++11 TESTS 91 15 2457600 1300
34410512 Kukoc B Jan. 21, 2018, 10:54 a.m. OK GNU C++11 TESTS 91 15 2457600 1300
34535452 Wattonz B Jan. 25, 2018, 4:34 a.m. OK GNU C++11 TESTS 91 15 2457600 1300
34434752 yizhixiaokong B Jan. 22, 2018, 6:26 a.m. OK GNU C++11 TESTS 91 15 2457600 1300
34440449 wraith66 B Jan. 22, 2018, 9:04 a.m. OK GNU C++11 TESTS 91 15 2867200 1300
34453086 _FariD_ B Jan. 22, 2018, 3:46 p.m. OK GNU C++11 TESTS 91 15 2867200 1300
34444409 justarandomstring B Jan. 22, 2018, 11:16 a.m. OK GNU C++11 TESTS 91 15 4403200 1300
34987038 thhyj B Feb. 7, 2018, 3:25 a.m. OK GNU C++11 TESTS 91 30 2867200 1300
34391486 Linkus B Jan. 20, 2018, 8:46 p.m. OK GNU C++14 TESTS 91 15 2252800 1300
34410068 lionadis B Jan. 21, 2018, 10:42 a.m. OK GNU C++14 TESTS 91 30 2457600 1300
34398915 libra9z B Jan. 21, 2018, 3:28 a.m. OK GNU C++14 TESTS 91 31 1945600 1300
35496640 Fade221 B Feb. 19, 2018, 6:07 p.m. OK GNU C++14 TESTS 91 31 2252800 1300
35185370 Ardnelias B Feb. 12, 2018, 5:34 p.m. OK GNU C++14 TESTS 91 31 2252800 1300
35142112 iLoveIOI B Feb. 11, 2018, 4:15 a.m. OK GNU C++14 TESTS 91 31 2252800 1300
34994389 yswdra B Feb. 7, 2018, 9:50 a.m. OK GNU C++14 TESTS 91 31 2252800 1300
34983492 joaom B Feb. 6, 2018, 9:54 p.m. OK GNU C++14 TESTS 91 31 2252800 1300
35567509 Moe_Sakiya B Feb. 22, 2018, 8:05 a.m. OK GNU C++14 TESTS 91 31 2252800 1300
34826568 loongnight B Feb. 2, 2018, 4:55 a.m. OK GNU C++14 TESTS 91 31 2252800 1300
46999086 zy0yxyoz B Dec. 14, 2018, 10:29 a.m. OK GNU C++17 TESTS 91 46 0 1300
69564198 Magicdog_Jo B Jan. 26, 2020, 11:47 a.m. OK GNU C++17 TESTS 91 46 409600 1300
63534371 skyhavoc B Oct. 27, 2019, 7:38 a.m. OK GNU C++17 TESTS 91 46 409600 1300
63371314 1706915047 B Oct. 25, 2019, 9:28 a.m. OK GNU C++17 TESTS 91 46 409600 1300
59859877 _Madotsuki_ B Sept. 1, 2019, 2:53 p.m. OK GNU C++17 TESTS 91 46 409600 1300
57444764 Saurav_Paul B July 21, 2019, 7:53 a.m. OK GNU C++17 TESTS 91 46 409600 1300
57100686 JustasLe B July 15, 2019, 1:40 p.m. OK GNU C++17 TESTS 91 46 409600 1300
56005599 ashcode0605 B June 24, 2019, 3:21 p.m. OK GNU C++17 TESTS 91 46 409600 1300
53772831 gratus907 diordhd Coffeetea B May 5, 2019, 6:36 a.m. OK GNU C++17 TESTS 91 46 409600 1300
69591214 Ghozlan B Jan. 26, 2020, 11:43 p.m. OK GNU C++17 TESTS 91 46 409600 1300
34410330 shahincsejnu B Jan. 21, 2018, 10:49 a.m. OK GNU C++17 Diagnostics TESTS 91 1669 99942400 1300
34399194 ritvik_sangwan B Jan. 21, 2018, 3:41 a.m. OK GNU C++17 Diagnostics TESTS 91 1934 99840000 1300
34399157 ritvik_sangwan B Jan. 21, 2018, 3:39 a.m. OK GNU C++17 Diagnostics TESTS 91 1949 100556800 1300
34400153 ecjtu17taoxinrong B Jan. 21, 2018, 4:28 a.m. OK GNU C++17 Diagnostics TESTS 91 1965 100352000 1300
34446580 Rakhman B Jan. 22, 2018, 12:23 p.m. OK GNU C++17 Diagnostics TESTS 91 1981 100352000 1300
34580663 Khaled_Mohamed B Jan. 26, 2018, 3:46 p.m. OK GNU C++17 Diagnostics TESTS 91 1996 102912000 1300
58405127 ataul443 B Aug. 6, 2019, 8:02 p.m. OK Go TESTS 91 1996 4608000 1300
34420383 kshitij B Jan. 21, 2018, 4:53 p.m. OK Haskell TESTS 91 93 59699200 1300
34593694 codemania B Jan. 27, 2018, 4:32 a.m. OK Haskell TESTS 91 249 76492800 1300
34493575 dendi239 B Jan. 23, 2018, 7:01 p.m. OK Haskell TESTS 91 436 80691200 1300
34728175 sl0th B Jan. 31, 2018, 6:28 a.m. OK Haskell TESTS 91 452 62873600 1300
34420253 kshitij B Jan. 21, 2018, 4:47 p.m. OK Haskell TESTS 91 499 71270400 1300
44396357 guptautkarsh028 B Oct. 16, 2018, 11 a.m. OK Java 8 TESTS 91 124 0 1300
34884697 sooraj10 B Feb. 3, 2018, 6:37 a.m. OK Java 8 TESTS 91 124 20684800 1300
35178028 Aditya76 B Feb. 12, 2018, 12:48 p.m. OK Java 8 TESTS 91 124 20684800 1300
34535203 WisdenCoder B Jan. 25, 2018, 4:17 a.m. OK Java 8 TESTS 91 124 20684800 1300
34530215 S010M B Jan. 24, 2018, 10:07 p.m. OK Java 8 TESTS 91 124 20684800 1300
34448557 cacophonix B Jan. 22, 2018, 1:26 p.m. OK Java 8 TESTS 91 124 20684800 1300
34421233 Waylesange B Jan. 21, 2018, 5:34 p.m. OK Java 8 TESTS 91 124 20684800 1300
34421198 Waylesange B Jan. 21, 2018, 5:32 p.m. OK Java 8 TESTS 91 124 20684800 1300
34410613 ShowStopper728 B Jan. 21, 2018, 10:57 a.m. OK Java 8 TESTS 91 124 20684800 1300
34398123 Owwee B Jan. 21, 2018, 2:54 a.m. OK Java 8 TESTS 91 124 20684800 1300
59777985 david_varela B Aug. 31, 2019, 1:06 a.m. OK Kotlin TESTS 91 280 5120000 1300
34621892 ZALeo B Jan. 28, 2018, 2:49 a.m. OK Kotlin TESTS 91 295 27340800 1300
34491608 dendi239 B Jan. 23, 2018, 5:55 p.m. OK Kotlin TESTS 91 1170 28160000 1300
34950381 Xtreemist B Feb. 5, 2018, 5:01 p.m. OK Mono C# TESTS 91 62 18022400 1300
34567174 perplex B Jan. 26, 2018, 6:49 a.m. OK Mono C# TESTS 91 62 19456000 1300
48326365 Skndr801 B Jan. 13, 2019, 12:03 p.m. OK Mono C# TESTS 91 77 10035200 1300
52633178 MinProph B April 12, 2019, 8:23 a.m. OK Mono C# TESTS 91 77 10137600 1300
34447415 mukhkh B Jan. 22, 2018, 12:48 p.m. OK Mono C# TESTS 91 77 21913600 1300
37677710 og.kostya B April 28, 2018, 6:36 a.m. OK Mono C# TESTS 91 78 21196800 1300
34637155 Anton_S B Jan. 28, 2018, 3:36 p.m. OK Mono C# TESTS 91 78 22937600 1300
49065791 nemars B Jan. 27, 2019, 5:40 p.m. OK Mono C# TESTS 91 108 15667200 1300
34413091 magneet B Jan. 21, 2018, 12:12 p.m. OK MS C# TESTS 91 62 9625600 1300
34424178 Samyrai B Jan. 21, 2018, 8:04 p.m. OK MS C# TESTS 91 78 21094400 1300
34437529 fr0st B Jan. 22, 2018, 7:56 a.m. OK MS C# TESTS 91 93 22528000 1300
34432043 forestsea B Jan. 22, 2018, 4:33 a.m. OK MS C++ TESTS 91 31 2457600 1300
35808173 vjudge5 B March 1, 2018, 10:13 a.m. OK MS C++ TESTS 91 31 2457600 1300
34991016 Nightmare_n B Feb. 7, 2018, 7:09 a.m. OK MS C++ TESTS 91 31 2457600 1300
34990755 Nightmare_n B Feb. 7, 2018, 6:57 a.m. OK MS C++ TESTS 91 31 2457600 1300
34642036 vjudge3 B Jan. 28, 2018, 7:20 p.m. OK MS C++ TESTS 91 31 2457600 1300
34593968 vjudge2 B Jan. 27, 2018, 4:48 a.m. OK MS C++ TESTS 91 31 2457600 1300
34545930 vjudge5 B Jan. 25, 2018, 12:38 p.m. OK MS C++ TESTS 91 31 2457600 1300
34448177 vjudge3 B Jan. 22, 2018, 1:14 p.m. OK MS C++ TESTS 91 31 2457600 1300
34432088 vjudge3 B Jan. 22, 2018, 4:35 a.m. OK MS C++ TESTS 91 31 2457600 1300
36247368 vjudge4 B March 13, 2018, 12:12 p.m. OK MS C++ TESTS 91 31 2867200 1300
62419175 YHHxBULIATANIA B Oct. 12, 2019, 12:26 p.m. OK MS C++ 2017 TESTS 91 61 3174400 1300
57128372 vjudge1 B July 16, 2019, 5:57 a.m. OK MS C++ 2017 TESTS 91 62 409600 1300
49396709 pill B Feb. 3, 2019, 12:42 p.m. OK MS C++ 2017 TESTS 91 93 409600 1300
58569395 IbraheemJanajreh B Aug. 11, 2019, 9:24 a.m. OK MS C++ 2017 TESTS 91 93 409600 1300
64144118 Boryan07 B Nov. 3, 2019, 9:20 a.m. OK MS C++ 2017 TESTS 91 93 1126400 1300
57599523 CtrlAlt B July 23, 2019, 3:12 p.m. OK MS C++ 2017 TESTS 91 93 3174400 1300
51878098 ahmedabdalmageed B March 26, 2019, 8:52 p.m. OK MS C++ 2017 TESTS 91 108 4198400 1300
56759266 Mad112233 B July 9, 2019, 3:10 p.m. OK MS C++ 2017 TESTS 91 139 3276800 1300
34392281 rsFalse B Jan. 20, 2018, 9:04 p.m. OK Perl TESTS 91 77 20070400 1300
34448153 rsFalse B Jan. 22, 2018, 1:13 p.m. OK Perl TESTS 91 826 30822400 1300
34385673 mayakin B Jan. 20, 2018, 5:52 p.m. OK PHP TESTS 91 187 15974400 1300
34404016 comingtoiit B Jan. 21, 2018, 7:16 a.m. OK PyPy 2 TESTS 91 124 28876800 1300
36328325 arpantarkas B March 16, 2018, 2:15 p.m. OK PyPy 2 TESTS 91 155 34816000 1300
43017434 daniel.carlos B Sept. 18, 2018, 12:57 a.m. OK PyPy 2 TESTS 91 171 7987200 1300
34588834 lebeg B Jan. 26, 2018, 9:45 p.m. OK PyPy 2 TESTS 91 171 28364800 1300
43703392 masonsbro B Oct. 2, 2018, 7:54 p.m. OK PyPy 2 TESTS 91 186 10752000 1300
42125275 Onesh0t B Aug. 26, 2018, 2:45 p.m. OK PyPy 2 TESTS 91 187 11776000 1300
34788108 HandsomeHow B Feb. 1, 2018, 4:04 a.m. OK PyPy 3 TESTS 91 140 30720000 1300
35416333 Qumeric B Feb. 17, 2018, 12:41 p.m. OK PyPy 3 TESTS 91 155 31436800 1300
34679250 Svitkona B Jan. 29, 2018, 3:41 p.m. OK PyPy 3 TESTS 91 155 31744000 1300
35511736 Praxis B Feb. 20, 2018, 5:09 a.m. OK PyPy 3 TESTS 91 155 32153600 1300
34395016 xfce8888 B Jan. 20, 2018, 11:49 p.m. OK PyPy 3 TESTS 91 171 31539200 1300
34394749 yum B Jan. 20, 2018, 11:25 p.m. OK PyPy 3 TESTS 91 171 31948800 1300
53495850 Leendertz B April 29, 2019, 11:43 a.m. OK PyPy 3 TESTS 91 186 11878400 1300
49217989 Pratik_2106 B Jan. 30, 2019, 5:53 p.m. OK PyPy 3 TESTS 91 187 10956800 1300
53385421 docardoso B April 27, 2019, 3:09 a.m. OK PyPy 3 TESTS 91 187 11161600 1300
34409383 shiningsunnyday B Jan. 21, 2018, 10:21 a.m. OK PyPy 3 TESTS 91 187 31436800 1300
34649521 ytz123 B Jan. 29, 2018, 4:26 a.m. OK Python 2 TESTS 91 124 10240000 1300
34395148 Aurchy B Jan. 20, 2018, 11:59 p.m. OK Python 2 TESTS 91 124 10649600 1300
34410201 Zhaoyz B Jan. 21, 2018, 10:46 a.m. OK Python 2 TESTS 91 124 10956800 1300
34589089 lebeg B Jan. 26, 2018, 10:04 p.m. OK Python 2 TESTS 91 140 10240000 1300
34404372 aayush_141 B Jan. 21, 2018, 7:30 a.m. OK Python 2 TESTS 91 140 10240000 1300
34496617 M.Sharifi B Jan. 23, 2018, 9:08 p.m. OK Python 2 TESTS 91 140 10752000 1300
34687906 tnowakow B Jan. 29, 2018, 6:49 p.m. OK Python 2 TESTS 91 140 10854400 1300
34491280 aeshak84 B Jan. 23, 2018, 5:45 p.m. OK Python 2 TESTS 91 140 10956800 1300
34398251 Hahahahahahahhahaha B Jan. 21, 2018, 2:59 a.m. OK Python 2 TESTS 91 140 10956800 1300
34395123 Aurchy B Jan. 20, 2018, 11:58 p.m. OK Python 2 TESTS 91 140 10956800 1300
34583884 orailly B Jan. 26, 2018, 5:42 p.m. OK Python 3 TESTS 91 93 13414400 1300
34487515 dvec B Jan. 23, 2018, 3:44 p.m. OK Python 3 TESTS 91 108 17817600 1300
36051284 iamrk B March 7, 2018, 4:30 p.m. OK Python 3 TESTS 91 109 13004800 1300
34516621 Palladin B Jan. 24, 2018, 12:38 p.m. OK Python 3 TESTS 91 109 13004800 1300
34583847 orailly B Jan. 26, 2018, 5:41 p.m. OK Python 3 TESTS 91 109 13414400 1300
34559462 ldt116 B Jan. 25, 2018, 10:43 p.m. OK Python 3 TESTS 91 109 14131200 1300
34420747 mtarunsai1999 B Jan. 21, 2018, 5:09 p.m. OK Python 3 TESTS 91 109 14131200 1300
34559470 ldt116 B Jan. 25, 2018, 10:44 p.m. OK Python 3 TESTS 91 109 14233600 1300
34510418 ablxl B Jan. 24, 2018, 8:55 a.m. OK Python 3 TESTS 91 109 14233600 1300
34395135 xfce8888 B Jan. 20, 2018, 11:58 p.m. OK Python 3 TESTS 91 109 14233600 1300
34395901 rinzu B Jan. 21, 2018, 12:50 a.m. OK Ruby TESTS 91 140 15974400 1300
34615529 arvind0598 B Jan. 27, 2018, 7:07 p.m. OK Ruby TESTS 91 171 26009600 1300
34921433 cielavenir B Feb. 4, 2018, 11:31 a.m. OK Ruby TESTS 91 202 26009600 1300
34393014 limed B Jan. 20, 2018, 9:26 p.m. OK Scala TESTS 91 904 75571200 1300
34392356 antanasb B Jan. 20, 2018, 9:05 p.m. OK Scala TESTS 91 1153 72704000 1300

remove filters

Back to search problems