Croc Champ 2013 - Round 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
293 Croc Champ 2013 - Round 2 FINISHED False 7800 365178299 April 22, 2013, 3:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 2901 ) A Weird Game PROGRAMMING games greedy 1500

B'Yaroslav, Andrey and Roman can play cubes for hours and hours. But the game is for three, so when Roman doesn 't show up, Yaroslav and Andrey play another game. Roman leaves a word for each of them. Each word consists of 2 xc2 xb7n binary characters "0" or "1". After that the players start moving in turns. Yaroslav moves first. During a move, a player must choose an integer from 1 to 2 xc2 xb7n, which hasn 't been chosen by anybody up to that moment. Then the player takes a piece of paper and writes out the corresponding character from his string. Let 's represent Yaroslav 's word as s xe2 x80 x89= xe2 x80 x89s1s2... s2n. Similarly, let 's represent Andrey 's word as t xe2 x80 x89= xe2 x80 x89t1t2... t2n. Then, if Yaroslav choose number k during his move, then he is going to write out character sk on the piece of paper. Similarly, if Andrey choose number r during his move, then he is going to write out character tr on the piece of paper. The game finishes when no player can make a move. After the game is over, Yaroslav makes some integer from the characters written on his piece of paper (Yaroslav can arrange these characters as he wants). Andrey does the same. The resulting numbers can contain leading zeroes. The person with the largest number wins. If the numbers are equal, the game ends with a draw. You are given two strings s and t. Determine the outcome of the game provided that Yaroslav and Andrey play optimally well. The first line contains integer n (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89106). The second line contains string s -- Yaroslav 's word. The third line contains string t -- Andrey 's word. It is guaranteed that both words consist of 2 xc2 xb7n characters "0" and "1". Print "First", if both players play optimally well and Yaroslav wins. If Andrey wins, print "Second" and if the game ends with a draw, print "Draw". Print the words without the quotes.'...

Tutorials

Croc Champ 2013 — Round 2 — Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
3602744 Gassa A April 22, 2013, 3:50 p.m. OK D TESTS 51 156 7475200 1500
3715921 yermak0v A May 13, 2013, 9:41 a.m. OK D TESTS 51 687 7475200 1500
3607501 Misha100896 A April 22, 2013, 7:25 p.m. OK Delphi TESTS 51 62 3993600 1500
3603033 valeriy.stromov A April 22, 2013, 3:53 p.m. OK Delphi TESTS 51 62 35020800 1500
3608463 ruban A April 23, 2013, 12:42 a.m. OK Delphi TESTS 51 78 6041600 1500
3611257 MrJigan1488 A April 23, 2013, 12:51 p.m. OK Delphi TESTS 51 78 35020800 1500
3603045 TheHedgehog A April 22, 2013, 3:54 p.m. OK Delphi TESTS 51 93 14848000 1500
3606983 AleksanderBalobanov A April 22, 2013, 5:36 p.m. OK Delphi TESTS 51 109 10137600 1500
3603382 Golovanov399 A April 22, 2013, 4 p.m. OK Delphi TESTS 51 1921 4403200 1500
3611065 zscc A April 23, 2013, 12:16 p.m. OK FPC TESTS 51 15 7680000 1500
3687432 Rogan A May 6, 2013, 3:35 p.m. OK FPC TESTS 51 31 7680000 1500
3612606 tennisru A April 23, 2013, 5 p.m. OK FPC TESTS 51 31 7680000 1500
3611539 Berzhik A April 23, 2013, 1:38 p.m. OK FPC TESTS 51 31 7680000 1500
3602499 Alex_2oo8 A April 22, 2013, 3:48 p.m. OK FPC TESTS 51 31 7680000 1500
3615807 ig_dug A April 24, 2013, 9:51 a.m. OK FPC TESTS 51 31 7782400 1500
3602451 scorpion A April 22, 2013, 3:48 p.m. OK FPC TESTS 51 46 7680000 1500
3612855 Misha100896 A April 23, 2013, 6:03 p.m. OK FPC TESTS 51 46 7782400 1500
5457436 graceoflives A Dec. 17, 2013, 8:38 p.m. OK FPC TESTS 51 62 7680000 1500
3702742 Nik_Storm_2010 A May 11, 2013, 2:41 p.m. OK FPC TESTS 51 62 7680000 1500
3825833 niti94 A June 5, 2013, 7:25 p.m. OK GNU C TESTS 51 31 3993600 1500
3825830 nitin94 A June 5, 2013, 7:25 p.m. OK GNU C TESTS 51 31 3993600 1500
5636590 nick894 A Jan. 8, 2014, 8:51 a.m. OK GNU C TESTS 51 62 3993600 1500
4545013 helloworld123 A Sept. 23, 2013, 7:52 p.m. OK GNU C TESTS 51 62 3993600 1500
3602077 kawatea A April 22, 2013, 3:44 p.m. OK GNU C TESTS 51 62 3993600 1500
3619437 carry-david A April 25, 2013, 8:02 a.m. OK GNU C++ TESTS 51 31 3993600 1500
3609145 ztxz16 A April 23, 2013, 4:39 a.m. OK GNU C++ TESTS 51 31 3993600 1500
3608339 greatwall1995 A April 23, 2013, 12:06 a.m. OK GNU C++ TESTS 51 31 3993600 1500
3608232 gtas5 A April 22, 2013, 11:46 p.m. OK GNU C++ TESTS 51 31 3993600 1500
3607933 Snoopy A April 22, 2013, 9:04 p.m. OK GNU C++ TESTS 51 31 3993600 1500
3606893 fancy A April 22, 2013, 5:33 p.m. OK GNU C++ TESTS 51 31 3993600 1500
3604192 oruas A April 22, 2013, 4:11 p.m. OK GNU C++ TESTS 51 31 3993600 1500
3604190 hanfei19910905 A April 22, 2013, 4:11 p.m. OK GNU C++ TESTS 51 31 3993600 1500
3603857 handojo1 A April 22, 2013, 4:05 p.m. OK GNU C++ TESTS 51 31 3993600 1500
3603720 pershik A April 22, 2013, 4:04 p.m. OK GNU C++ TESTS 51 31 3993600 1500
5640223 marat.snowbear A Jan. 8, 2014, 11:44 p.m. OK GNU C++0x TESTS 51 30 5836800 1500
3607917 mruxim A April 22, 2013, 8:57 p.m. OK GNU C++0x TESTS 51 31 3993600 1500
3604000 Kostroma A April 22, 2013, 4:07 p.m. OK GNU C++0x TESTS 51 31 5836800 1500
3603199 GuyUpLion A April 22, 2013, 3:55 p.m. OK GNU C++0x TESTS 51 31 6246400 1500
3610515 Archon.JK A April 23, 2013, 10:53 a.m. OK GNU C++0x TESTS 51 46 3993600 1500
3605008 icyrhyme A April 22, 2013, 4:29 p.m. OK GNU C++0x TESTS 51 46 3993600 1500
3602555 pawelwa111 A April 22, 2013, 3:48 p.m. OK GNU C++0x TESTS 51 46 3993600 1500
3602425 Archon.JK A April 22, 2013, 3:48 p.m. OK GNU C++0x TESTS 51 46 3993600 1500
3609856 zjut_DD A April 23, 2013, 8:07 a.m. OK GNU C++0x TESTS 51 46 4198400 1500
3603670 hex539 A April 22, 2013, 4:02 p.m. OK GNU C++0x TESTS 51 46 5836800 1500
12679747 NotHere A Aug. 24, 2015, 4:54 a.m. OK GNU C++11 TESTS 51 60 3993600 1500
29719059 luucasv A Aug. 23, 2017, 11:43 p.m. OK GNU C++11 TESTS 51 60 6451200 1500
11595682 helpme A June 15, 2015, 2:53 p.m. OK GNU C++11 TESTS 51 60 35635200 1500
50637716 yingyudou A March 1, 2019, 12:32 p.m. OK GNU C++11 TESTS 51 62 2048000 1500
49858965 luogu_bot1 A Feb. 13, 2019, 8:36 a.m. OK GNU C++11 TESTS 51 62 3788800 1500
46481490 lijyya A Dec. 2, 2018, 8:57 a.m. OK GNU C++11 TESTS 51 62 3788800 1500
41671926 vjudge4 A Aug. 17, 2018, 5:43 a.m. OK GNU C++11 TESTS 51 62 3788800 1500
58202278 XZ20220135 A Aug. 3, 2019, 5:06 a.m. OK GNU C++11 TESTS 51 62 3993600 1500
49890048 CrazyTeaMajor A Feb. 14, 2019, 2:42 a.m. OK GNU C++11 TESTS 51 62 3993600 1500
19420477 macaca50507 A July 26, 2016, 10:20 a.m. OK GNU C++11 TESTS 51 62 3993600 1500
20664560 wrinx A Sept. 16, 2016, 4:41 p.m. OK GNU C++14 TESTS 51 60 6348800 1500
54916922 ljk0411jg A June 1, 2019, 2:22 p.m. OK GNU C++14 TESTS 51 62 3993600 1500
27317694 srinu37 A May 24, 2017, 9:47 a.m. OK GNU C++14 TESTS 51 62 4096000 1500
29770640 Master_Wayne A Aug. 25, 2017, 6:34 a.m. OK GNU C++14 TESTS 51 62 6451200 1500
27532981 fofao_funk A June 2, 2017, 11:52 p.m. OK GNU C++14 TESTS 51 62 6451200 1500
32605163 ArshiaDadras A Nov. 23, 2017, 9:14 p.m. OK GNU C++14 TESTS 51 62 7372800 1500
32752320 amir-kh A Nov. 28, 2017, 1:49 p.m. OK GNU C++14 TESTS 51 62 8294400 1500
55068920 keshavramaiah A June 4, 2019, 5:20 a.m. OK GNU C++14 TESTS 51 92 3993600 1500
54917191 ljk0411jg A June 1, 2019, 2:31 p.m. OK GNU C++14 TESTS 51 92 3993600 1500
54747007 enaim A May 28, 2019, 11:05 a.m. OK GNU C++14 TESTS 51 92 3993600 1500
62184543 vjudge5 A Oct. 9, 2019, 7:47 a.m. OK GNU C++17 TESTS 51 92 3993600 1500
60205038 charity A Sept. 7, 2019, 7:46 a.m. OK GNU C++17 TESTS 51 92 3993600 1500
68110685 Ashishgup A Jan. 3, 2020, 9:24 a.m. OK GNU C++17 TESTS 51 92 6144000 1500
45113049 _Samir A Oct. 30, 2018, 7:36 p.m. OK GNU C++17 TESTS 51 92 6144000 1500
52898519 the.mentalist A April 17, 2019, 10:06 a.m. OK GNU C++17 TESTS 51 92 6451200 1500
63880518 victory_has_defeated_you A Oct. 30, 2019, 8:42 p.m. OK GNU C++17 TESTS 51 92 6451200 1500
62081845 Vrikodara A Oct. 7, 2019, 9:17 p.m. OK GNU C++17 TESTS 51 92 6451200 1500
60497910 soul_voyage A Sept. 13, 2019, 5:11 p.m. OK GNU C++17 TESTS 51 92 6451200 1500
58875902 jt_112 A Aug. 15, 2019, 5:50 p.m. OK GNU C++17 TESTS 51 92 6451200 1500
47282673 Weheineman A Dec. 20, 2018, 3:10 a.m. OK GNU C++17 TESTS 51 92 6451200 1500
3636810 vogel_Japan A April 26, 2013, 3:45 p.m. OK Haskell TESTS 51 921 133529600 1500
3645745 hza A April 28, 2013, 5:07 a.m. OK Haskell TESTS 51 1045 162918400 1500
3645747 hza A April 28, 2013, 5:08 a.m. OK Haskell TESTS 51 1062 162918400 1500
3602608 uwi A April 22, 2013, 3:49 p.m. OK Java 6 TESTS 51 140 0 1500
3608967 hiukim A April 23, 2013, 3:51 a.m. OK Java 6 TESTS 51 156 11366400 1500
3603163 Slamur A April 22, 2013, 3:54 p.m. OK Java 6 TESTS 51 203 11673600 1500
3612585 ask_23 A April 23, 2013, 4:55 p.m. OK Java 6 TESTS 51 203 13516800 1500
3602520 jonathanpaulson A April 22, 2013, 3:48 p.m. OK Java 6 TESTS 51 218 11264000 1500
3604354 pashka A April 22, 2013, 4:15 p.m. OK Java 6 TESTS 51 218 11878400 1500
3603553 Gleb A April 22, 2013, 4:01 p.m. OK Java 6 TESTS 51 234 12083200 1500
3609435 hs484 A April 23, 2013, 6:01 a.m. OK Java 6 TESTS 51 234 13516800 1500
3602402 Sammarize A April 22, 2013, 3:48 p.m. OK Java 6 TESTS 51 234 15360000 1500
4406942 mkirsche A Sept. 4, 2013, 9:27 p.m. OK Java 6 TESTS 51 280 11980800 1500
3603436 AlexanderBolshakov A April 22, 2013, 4 p.m. OK Java 7 TESTS 51 156 12288000 1500
3656279 lightbringer1991 A May 1, 2013, 4:24 a.m. OK Java 7 TESTS 51 171 11468800 1500
3651326 rpk74m A April 29, 2013, 1:35 p.m. OK Java 7 TESTS 51 171 11980800 1500
3603236 sweiss A April 22, 2013, 3:55 p.m. OK Java 7 TESTS 51 171 11980800 1500
3646036 xenoslash A April 28, 2013, 7:02 a.m. OK Java 7 TESTS 51 187 11878400 1500
3602751 eatmore A April 22, 2013, 3:50 p.m. OK Java 7 TESTS 51 187 11878400 1500
3603020 cerealguy A April 22, 2013, 3:53 p.m. OK Java 7 TESTS 51 187 11980800 1500
3602505 andrewzta A April 22, 2013, 3:48 p.m. OK Java 7 TESTS 51 187 11980800 1500
3602651 riadwaw A April 22, 2013, 3:49 p.m. OK Java 7 TESTS 51 187 12083200 1500
3602758 dmitry.uvarov A April 22, 2013, 3:50 p.m. OK Java 7 TESTS 51 203 11980800 1500
45065905 guptautkarsh028 A Oct. 29, 2018, 4:59 p.m. OK Java 8 TESTS 51 280 2048000 1500
55510380 maheshwari29 A June 12, 2019, 9:41 p.m. OK Java 8 TESTS 51 310 14131200 1500
16435193 flyman3046 A March 1, 2016, 3:51 a.m. OK Java 8 TESTS 51 342 10342400 1500
22193730 kocko A Nov. 13, 2016, 1:32 p.m. OK Java 8 TESTS 51 342 14745600 1500
35813424 golikovnik A March 1, 2018, 2:04 p.m. OK Java 8 TESTS 51 342 36761600 1500
43945689 Anoque A Oct. 7, 2018, 1:36 p.m. OK Java 8 TESTS 51 590 15462400 1500
7237703 Pimpom A July 25, 2014, 4:07 a.m. OK Java 8 TESTS 51 1620 249139200 1500
3603461 fiver A April 22, 2013, 4:01 p.m. OK Mono C# TESTS 51 140 253542400 1500
3602899 it4.kp A April 22, 2013, 3:53 p.m. OK Mono C# TESTS 51 202 47820800 1500
3728477 ghewanzin A May 16, 2013, 9:17 p.m. OK MS C# TESTS 51 78 16179200 1500
16293096 og.kostya A Feb. 23, 2016, 1:25 p.m. OK MS C# TESTS 51 154 15974400 1500
3603602 Sfairat A April 22, 2013, 4:01 p.m. OK MS C++ TESTS 51 31 3993600 1500
3607813 Angor A April 22, 2013, 8:19 p.m. OK MS C++ TESTS 51 31 3993600 1500
3603046 tyamgin A April 22, 2013, 3:54 p.m. OK MS C++ TESTS 51 31 3993600 1500
3702374 RiKang A May 11, 2013, 12:22 p.m. OK MS C++ TESTS 51 46 3993600 1500
3603476 lxhgww A April 22, 2013, 4:01 p.m. OK MS C++ TESTS 51 46 3993600 1500
3603433 RomaWhite A April 22, 2013, 4 p.m. OK MS C++ TESTS 51 46 3993600 1500
3603314 harhrayr A April 22, 2013, 3:56 p.m. OK MS C++ TESTS 51 46 3993600 1500
3603285 dragoon A April 22, 2013, 3:56 p.m. OK MS C++ TESTS 51 46 3993600 1500
3603243 NALP A April 22, 2013, 3:55 p.m. OK MS C++ TESTS 51 46 3993600 1500
3603204 Monyura A April 22, 2013, 3:55 p.m. OK MS C++ TESTS 51 46 3993600 1500
62755686 YHHxBULIATANIA A Oct. 17, 2019, 4:31 a.m. OK MS C++ 2017 TESTS 51 124 3993600 1500
62183503 vjudge3 A Oct. 9, 2019, 7:20 a.m. OK MS C++ 2017 TESTS 51 156 7065600 1500
19947537 Yash_ A Aug. 18, 2016, 2:03 p.m. OK PyPy 2 TESTS 51 186 31436800 1500
11765096 poikniok A June 25, 2015, 7:48 p.m. OK PyPy 2 TESTS 51 248 10649600 1500
49831428 ashok123 A Feb. 12, 2019, 2:06 p.m. OK PyPy 2 TESTS 51 310 11264000 1500
39852416 aeternalis1 A July 1, 2018, 10:37 p.m. OK PyPy 2 TESTS 51 1278 70246400 1500
27710489 chaosagent A June 10, 2017, 7:44 p.m. OK PyPy 2 TESTS 51 1308 73932800 1500
62857947 Leendertz A Oct. 18, 2019, 9:54 a.m. OK PyPy 3 TESTS 51 1402 11878400 1500
62858439 Leendertz A Oct. 18, 2019, 10:03 a.m. OK PyPy 3 TESTS 51 1560 118272000 1500
3603102 nwi A April 22, 2013, 3:54 p.m. OK Python 2 TESTS 51 780 96358400 1500
3666523 stareven A May 4, 2013, 1:49 a.m. OK Python 2 TESTS 51 796 96153600 1500
3604519 ben.hwang A April 22, 2013, 4:18 p.m. OK Python 2 TESTS 51 906 7065600 1500
3656448 goooooooopan A May 1, 2013, 5:54 a.m. OK Python 2 TESTS 51 1062 6656000 1500
3609566 nealzane A April 23, 2013, 6:41 a.m. OK Python 2 TESTS 51 1078 96460800 1500
3831366 Luxo A June 7, 2013, 1:49 p.m. OK Python 2 TESTS 51 1328 6553600 1500
3633258 locoyou A April 26, 2013, 12:21 a.m. OK Python 2 TESTS 51 1747 36556800 1500
3610083 sd0061 A April 23, 2013, 8:57 a.m. OK Python 2 TESTS 51 1812 36556800 1500
34527881 evilsyncope A Jan. 24, 2018, 7:53 p.m. OK Python 3 TESTS 51 1466 12595200 1500
6870088 yugle7 A June 12, 2014, 7:06 p.m. OK Python 3 TESTS 51 1622 6553600 1500
10572138 overrorflow A April 4, 2015, 10:57 a.m. OK Python 3 TESTS 51 1622 7372800 1500
10572189 overrorflow A April 4, 2015, 11 a.m. OK Python 3 TESTS 51 1652 7372800 1500
35162412 niquefa_diego A Feb. 11, 2018, 7:42 p.m. OK Python 3 TESTS 51 1714 12083200 1500
15914189 not_bot_but_POT A Feb. 9, 2016, 1:40 p.m. OK Python 3 TESTS 51 1746 7372800 1500
35168011 DanielK A Feb. 12, 2018, 4:03 a.m. OK Python 3 TESTS 51 1870 12083200 1500
35141941 mavd09 A Feb. 11, 2018, 4 a.m. OK Python 3 TESTS 51 1932 12083200 1500
3602799 winger A April 22, 2013, 3:50 p.m. OK Scala TESTS 51 1265 7884800 1500

remove filters

Back to search problems