Croc Champ 2013 - Round 1

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
292 Croc Champ 2013 - Round 1 FINISHED False 7200 371658297 April 15, 2013, 3:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 1176 ) C Beautiful IP Addresses PROGRAMMING brute force 2000

B'The problem uses a simplified TCP/IP address model, please read the statement carefully. An IP address is a 32-bit integer, represented as a group of four decimal 8-bit integers (without leading zeroes), separated by commas. For example, record 0.255.1.123 shows a correct IP address and records 0.256.1.123 and 0.255.1.01 do not. In the given problem an arbitrary group of four 8-bit integers is a correct IP address. Our hero Polycarpus still works as a system administrator in some large corporation. He likes beautiful IP addresses. To check if some IP address is beautiful, he should do the following: Let us remind you that a palindrome is a string that reads the same from right to left and from left to right. For example, IP addresses 12.102.20.121 and 0.3.14.130 are beautiful (as strings "1210220121" and "0314130" are palindromes), and IP addresses 1.20.20.1 and 100.4.4.1 are not. Polycarpus wants to find all beautiful IP addresses that have the given set of digits. Each digit from the set must occur in the IP address at least once. IP address must not contain any other digits. Help him to cope with this difficult task. The first line contains a single integer n (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x8910) -- the number of digits in the set. The second line contains the set of integers a1, xe2 x80 x89a2, xe2 x80 x89..., xe2 x80 x89an (0 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89ai xe2 x80 x89 xe2 x89 xa4 xe2 x80 x899). It is guaranteed that all digits in the set are distinct. In the first line print a single integer k -- the number of beautiful IP addresses that contain the given set of digits. In the following k lines print the IP addresses, one per line in the arbitrary order.'...

Tutorials

Чемпионат КРОК 2013 — Раунд 1 (Разбор задач)

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
3547350 Gassa C April 15, 2013, 5:16 p.m. OK D TESTS 44 62 512000 2000
3547787 Misha100896 C April 15, 2013, 5:25 p.m. OK Delphi TESTS 44 109 1638400 2000
3545667 ig_dug C April 15, 2013, 4:36 p.m. OK FPC TESTS 44 15 16076800 2000
13472122 jiangyx C Oct. 7, 2015, 11:43 a.m. OK FPC TESTS 44 60 512000 2000
13415125 jiangyx C Oct. 5, 2015, noon OK FPC TESTS 44 60 4403200 2000
3545920 netman C April 15, 2013, 4:43 p.m. OK FPC TESTS 44 124 12595200 2000
3547254 con_nha_ngheo C April 15, 2013, 5:14 p.m. OK FPC TESTS 44 125 4198400 2000
3545442 htkek C April 15, 2013, 4:31 p.m. OK FPC TESTS 44 125 12595200 2000
3611019 vlad107 C April 23, 2013, 12:11 p.m. OK FPC TESTS 44 250 2150400 2000
3547582 hiepsieunhan C April 15, 2013, 5:21 p.m. OK FPC TESTS 44 296 4198400 2000
3728060 Nik_Storm_2010 C May 16, 2013, 6:14 p.m. OK FPC TESTS 44 312 204800 2000
5009477 handlecurrentinuse C Nov. 6, 2013, 2:27 p.m. OK FPC TESTS 44 342 1638400 2000
7365657 vjudge2 C Aug. 7, 2014, 8:24 a.m. OK GNU C TESTS 44 30 921600 2000
3545212 vysheng C April 15, 2013, 4:27 p.m. OK GNU C TESTS 44 140 3993600 2000
3549950 DebutantGY C April 16, 2013, 12:51 a.m. OK GNU C++ TESTS 44 15 0 2000
3544676 Igor_Kudryashov C April 15, 2013, 4:17 p.m. OK GNU C++ TESTS 44 15 0 2000
3544109 wrong C April 15, 2013, 4:07 p.m. OK GNU C++ TESTS 44 15 0 2000
3791637 benbendog C May 29, 2013, 3:48 p.m. OK GNU C++ TESTS 44 15 102400 2000
3558924 EarlOfDitches C April 18, 2013, 5:16 a.m. OK GNU C++ TESTS 44 15 102400 2000
3557076 ruptins C April 17, 2013, 3:31 p.m. OK GNU C++ TESTS 44 15 102400 2000
3557034 ruptins C April 17, 2013, 3:22 p.m. OK GNU C++ TESTS 44 15 102400 2000
3550366 qiandichen C April 16, 2013, 3:55 a.m. OK GNU C++ TESTS 44 15 102400 2000
3547863 darkhh C April 15, 2013, 5:26 p.m. OK GNU C++ TESTS 44 15 102400 2000
3546534 fenzhang C April 15, 2013, 4:56 p.m. OK GNU C++ TESTS 44 15 102400 2000
3552177 2011330300713 C April 16, 2013, 11:50 a.m. OK GNU C++0x TESTS 44 15 0 2000
3546083 watashi C April 15, 2013, 4:46 p.m. OK GNU C++0x TESTS 44 15 204800 2000
3545838 GuyUpLion C April 15, 2013, 4:40 p.m. OK GNU C++0x TESTS 44 15 204800 2000
3545631 hex539 C April 15, 2013, 4:36 p.m. OK GNU C++0x TESTS 44 15 204800 2000
3550171 ZhouYuChen C April 16, 2013, 2:52 a.m. OK GNU C++0x TESTS 44 31 0 2000
3548152 ordcoder C April 15, 2013, 5:31 p.m. OK GNU C++0x TESTS 44 31 102400 2000
3547513 Archon.JK C April 15, 2013, 5:19 p.m. OK GNU C++0x TESTS 44 31 102400 2000
3543369 vepifanov C April 15, 2013, 3:57 p.m. OK GNU C++0x TESTS 44 31 204800 2000
3548019 permin C April 15, 2013, 5:29 p.m. OK GNU C++0x TESTS 44 46 409600 2000
9397139 hkglly C Jan. 10, 2015, 11:59 a.m. OK GNU C++0x TESTS 44 62 307200 2000
19188012 lungly1 C July 17, 2016, 9:58 a.m. OK GNU C++11 TESTS 44 30 102400 2000
15673275 I_Love_Zzq C Jan. 30, 2016, 6:27 a.m. OK GNU C++11 TESTS 44 30 102400 2000
15671625 FST_master C Jan. 30, 2016, 4:05 a.m. OK GNU C++11 TESTS 44 30 102400 2000
15674133 Victorx C Jan. 30, 2016, 7:19 a.m. OK GNU C++11 TESTS 44 30 204800 2000
15671157 FST_master C Jan. 30, 2016, 3:14 a.m. OK GNU C++11 TESTS 44 30 204800 2000
17130420 freebsdx C April 2, 2016, 1 p.m. OK GNU C++11 TESTS 44 30 2048000 2000
17167499 fengsuiyan C April 5, 2016, 7:54 a.m. OK GNU C++11 TESTS 44 30 2252800 2000
31605184 vjudge3 C Oct. 22, 2017, 1:32 p.m. OK GNU C++11 TESTS 44 30 3686400 2000
28981582 charliez C July 30, 2017, 3:24 a.m. OK GNU C++11 TESTS 44 30 4505600 2000
27998776 FluffyBunnyT C June 24, 2017, 6:37 a.m. OK GNU C++11 TESTS 44 30 50176000 2000
31059128 hjx_bravery C Oct. 6, 2017, 8:04 a.m. OK GNU C++14 TESTS 44 30 204800 2000
31036828 vjudge1 C Oct. 5, 2017, 2:16 p.m. OK GNU C++14 TESTS 44 30 204800 2000
29864765 FelixChen C Aug. 29, 2017, 11:44 a.m. OK GNU C++14 TESTS 44 30 204800 2000
29825592 paulzrm C Aug. 27, 2017, 11:41 a.m. OK GNU C++14 TESTS 44 30 204800 2000
29804796 cnnfls_csy C Aug. 26, 2017, 11:14 a.m. OK GNU C++14 TESTS 44 30 204800 2000
29856812 gwq2017 C Aug. 29, 2017, 2:14 a.m. OK GNU C++14 TESTS 44 30 307200 2000
29243787 bestqnl C Aug. 6, 2017, 2:41 p.m. OK GNU C++14 TESTS 44 30 2048000 2000
31482488 yoooou C Oct. 18, 2017, 1:57 p.m. OK GNU C++14 TESTS 44 30 2150400 2000
29238688 cnnfls_csy C Aug. 6, 2017, 10:28 a.m. OK GNU C++14 TESTS 44 30 2150400 2000
29864163 FelixChen C Aug. 29, 2017, 11:14 a.m. OK GNU C++14 TESTS 44 60 204800 2000
41640448 zekun C Aug. 16, 2018, 5 a.m. OK GNU C++17 TESTS 44 60 204800 2000
39643432 vjudge4 C June 25, 2018, 8:35 a.m. OK GNU C++17 TESTS 44 60 204800 2000
42120254 InvisibleCyclist C Aug. 26, 2018, 12:05 p.m. OK GNU C++17 TESTS 44 60 307200 2000
40078344 Zhu1223 C July 8, 2018, 7:27 a.m. OK GNU C++17 TESTS 44 60 307200 2000
41952975 InvisibleCyclist C Aug. 22, 2018, 3:36 a.m. OK GNU C++17 TESTS 44 62 0 2000
41230909 InvisibleCyclist C Aug. 5, 2018, 2:54 a.m. OK GNU C++17 TESTS 44 62 0 2000
51400145 simontangnfls C March 17, 2019, 6:53 a.m. OK GNU C++17 TESTS 44 62 102400 2000
41933863 InvisibleCyclist C Aug. 21, 2018, 11:52 a.m. OK GNU C++17 TESTS 44 62 102400 2000
41338593 zekun C Aug. 8, 2018, 1:49 p.m. OK GNU C++17 TESTS 44 62 102400 2000
41277262 zekun C Aug. 6, 2018, 1:54 p.m. OK GNU C++17 TESTS 44 62 102400 2000
3564595 boleyn.su C April 19, 2013, 2:22 p.m. OK Haskell TESTS 44 187 6451200 2000
3619243 hza C April 25, 2013, 6:26 a.m. OK Haskell TESTS 44 234 1126400 2000
11338145 Amr_Hassan C May 28, 2015, 7:32 p.m. OK Haskell TESTS 44 372 1126400 2000
3546535 ivan.popelyshev C April 15, 2013, 4:56 p.m. OK Java 6 TESTS 44 109 307200 2000
3544875 pashka C April 15, 2013, 4:21 p.m. OK Java 6 TESTS 44 109 2252800 2000
3601209 todo C April 22, 2013, 2:26 p.m. OK Java 6 TESTS 44 125 307200 2000
3582743 santjuan C April 20, 2013, 10:02 p.m. OK Java 6 TESTS 44 140 307200 2000
3545048 todo C April 15, 2013, 4:24 p.m. OK Java 6 TESTS 44 140 307200 2000
3545480 Sergey.Bankevich C April 15, 2013, 4:32 p.m. OK Java 6 TESTS 44 156 409600 2000
3547377 Gleb C April 15, 2013, 5:16 p.m. OK Java 6 TESTS 44 171 512000 2000
3550270 bladray2 C April 16, 2013, 3:24 a.m. OK Java 6 TESTS 44 171 2662400 2000
3544425 uwi C April 15, 2013, 4:12 p.m. OK Java 6 TESTS 44 218 2560000 2000
3550208 hama-du C April 16, 2013, 3:05 a.m. OK Java 6 TESTS 44 218 2764800 2000
3545218 JustDoIt C April 15, 2013, 4:27 p.m. OK Java 7 TESTS 44 93 0 2000
3544488 niyaznigmatul C April 15, 2013, 4:13 p.m. OK Java 7 TESTS 44 93 0 2000
3543761 Petr C April 15, 2013, 4:02 p.m. OK Java 7 TESTS 44 93 0 2000
3547062 pschuprikov C April 15, 2013, 5:09 p.m. OK Java 7 TESTS 44 109 0 2000
3546711 VArtem C April 15, 2013, 5 p.m. OK Java 7 TESTS 44 109 0 2000
3546564 qwerty787788 C April 15, 2013, 4:56 p.m. OK Java 7 TESTS 44 109 0 2000
3545900 Egor C April 15, 2013, 4:42 p.m. OK Java 7 TESTS 44 109 0 2000
3545240 S.Yesipenko C April 15, 2013, 4:27 p.m. OK Java 7 TESTS 44 109 0 2000
3688891 dreamstring C May 7, 2013, 1:49 a.m. OK Java 7 TESTS 44 109 102400 2000
3547468 yarrr C April 15, 2013, 5:18 p.m. OK Java 7 TESTS 44 109 102400 2000
10604161 AlexFetisov C April 5, 2015, 4:14 p.m. OK Java 8 TESTS 44 1622 0 2000
15675605 kylesky C Jan. 30, 2016, 9:05 a.m. OK Java 8 TESTS 44 1744 307200 2000
3545978 agh C April 15, 2013, 4:44 p.m. OK Mono C# TESTS 44 46 2355200 2000
3547366 AlphaStream C April 15, 2013, 5:16 p.m. OK Mono C# TESTS 44 46 2457600 2000
3547443 fiver C April 15, 2013, 5:18 p.m. OK Mono C# TESTS 44 93 214118400 2000
3552649 pkuderov C April 16, 2013, 1:20 p.m. OK Mono C# TESTS 44 109 614400 2000
3554242 dannsk C April 16, 2013, 7:52 p.m. OK Mono C# TESTS 44 109 3891200 2000
3546695 T-D-K C April 15, 2013, 5 p.m. OK Mono C# TESTS 44 437 2252800 2000
3549721 AlexanderL C April 15, 2013, 10:27 p.m. OK MS C++ TESTS 44 15 0 2000
3545238 freopen C April 15, 2013, 4:27 p.m. OK MS C++ TESTS 44 15 204800 2000
3545116 Aleksander C April 15, 2013, 4:25 p.m. OK MS C++ TESTS 44 15 204800 2000
3556585 xin5739 C April 17, 2013, 1:39 p.m. OK MS C++ TESTS 44 15 204800 2000
3584180 azim__ C April 21, 2013, 8:47 a.m. OK MS C++ TESTS 44 15 204800 2000
3545773 SharpC C April 15, 2013, 4:39 p.m. OK MS C++ TESTS 44 15 204800 2000
3546958 al13n C April 15, 2013, 5:06 p.m. OK MS C++ TESTS 44 15 204800 2000
3547640 Monyura C April 15, 2013, 5:22 p.m. OK MS C++ TESTS 44 15 204800 2000
3547699 Alchemist C April 15, 2013, 5:23 p.m. OK MS C++ TESTS 44 15 204800 2000
3548936 Muali C April 15, 2013, 8:13 p.m. OK MS C++ TESTS 44 15 614400 2000
3691123 antofik C May 7, 2013, 4:55 p.m. OK Python 2 TESTS 44 171 5529600 2000
3558761 nealzane C April 18, 2013, 4 a.m. OK Python 2 TESTS 44 359 409600 2000
3564763 nwi C April 19, 2013, 3 p.m. OK Python 2 TESTS 44 421 614400 2000
58108913 tomzhangyx2 C Aug. 1, 2019, 6:06 a.m. OK Python 2 TESTS 44 498 921600 2000
35858046 ______u______ C March 2, 2018, 8:51 p.m. OK Python 2 TESTS 44 592 4915200 2000
35857774 ______n______ C March 2, 2018, 8:46 p.m. OK Python 2 TESTS 44 592 4915200 2000
35857313 _____i_____ C March 2, 2018, 8:38 p.m. OK Python 2 TESTS 44 592 4915200 2000
35857189 _____k_____ C March 2, 2018, 8:34 p.m. OK Python 2 TESTS 44 592 4915200 2000
35848678 ______h______ C March 2, 2018, 5:02 p.m. OK Python 2 TESTS 44 592 4915200 2000
35848664 ______k______ C March 2, 2018, 5:02 p.m. OK Python 2 TESTS 44 592 4915200 2000
3546129 winger C April 15, 2013, 4:47 p.m. OK Scala TESTS 44 468 307200 2000

remove filters

Back to search problems