Educational Codeforces Round 39 (Rated for 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
946 Educational Codeforces Round 39 (Rated for Div. 2) FINISHED False 7200 211474499 March 6, 2018, 3:05 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 1102 ) E Largest Beautiful Number PROGRAMMING greedy implementation 2200

B'Yes, that 's another problem with definition of "beautiful" numbers. Let 's call a positive integer x beautiful if its decimal representation without leading zeroes contains even number of digits, and there exists a permutation of this representation which is palindromic. For example, 4242 is a beautiful number, since it contains 4 digits, and there exists a palindromic permutation 2442. Given a positive integer s, find the largest beautiful number which is less than s. The first line contains one integer t (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89t xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89105) -- the number of testcases you have to solve. Then t lines follow, each representing one testcase and containing one string which is the decimal representation of number s. It is guaranteed that this string has even length, contains no leading zeroes, and there exists at least one beautiful number less than s. The sum of lengths of s over all testcases doesn 't exceed 2 xc2 xb7105. For each testcase print one line containing the largest beautiful number which is less than s (it is guaranteed that the answer exists). '...

Tutorials

58210

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
36402550 __ShaW E March 19, 2018, 4:19 a.m. OK FPC TESTS 23 311 4915200 2200
36292103 yupackage E March 15, 2018, 7:04 a.m. OK GNU C TESTS 23 30 2048000 2200
36086939 HZAU_JYH E March 9, 2018, 4:56 a.m. OK GNU C++ TESTS 23 31 2048000 2200
36232196 ToErr E March 12, 2018, 6:21 p.m. OK GNU C++ TESTS 23 31 2560000 2200
36031988 hands_yhy E March 7, 2018, 3:28 a.m. OK GNU C++ TESTS 23 31 3072000 2200
36220592 tapopadma E March 12, 2018, 10:39 a.m. OK GNU C++ TESTS 23 31 3174400 2200
37437547 Scut82 E April 18, 2018, 1:14 p.m. OK GNU C++ TESTS 23 31 3686400 2200
37367780 Scut82 E April 16, 2018, 8:49 a.m. OK GNU C++ TESTS 23 31 4710400 2200
36565673 Oxer11 E March 24, 2018, 6:57 a.m. OK GNU C++ TESTS 23 31 4710400 2200
37368347 Scut82 E April 16, 2018, 9:23 a.m. OK GNU C++ TESTS 23 31 5529600 2200
41080705 luogu_bot5 E Aug. 1, 2018, 11:43 a.m. OK GNU C++ TESTS 23 31 8192000 2200
40916903 luogu_bot5 E July 29, 2018, 12:17 p.m. OK GNU C++ TESTS 23 31 8192000 2200
52351296 rainboy E April 5, 2019, 2:42 p.m. OK GNU C11 TESTS 23 343 204800 2200
36031670 Mitsuhaw E March 7, 2018, 2:57 a.m. OK GNU C++11 TESTS 23 30 2252800 2200
36060474 mxzf0213 E March 8, 2018, 4:02 a.m. OK GNU C++11 TESTS 23 30 3276800 2200
40916832 djh123 E July 29, 2018, 12:15 p.m. OK GNU C++11 TESTS 23 30 8192000 2200
65305262 He_Ren E Nov. 18, 2019, 2:38 p.m. OK GNU C++11 TESTS 23 31 0 2200
47853610 skywalkert E Jan. 2, 2019, 7:32 p.m. OK GNU C++11 TESTS 23 31 204800 2200
64675573 CMZ E Nov. 11, 2019, 7:53 a.m. OK GNU C++11 TESTS 23 31 1024000 2200
36085528 MudCoal E March 9, 2018, 2:45 a.m. OK GNU C++11 TESTS 23 31 2048000 2200
36018778 hzdzkjdx E March 6, 2018, 4:42 p.m. OK GNU C++11 TESTS 23 31 2048000 2200
36264690 1046764532 E March 14, 2018, 4:39 a.m. OK GNU C++11 TESTS 23 31 2048000 2200
36066288 binsjl E March 8, 2018, 9:46 a.m. OK GNU C++11 TESTS 23 31 2252800 2200
36060705 darthmelonder E March 8, 2018, 4:28 a.m. OK GNU C++14 TESTS 23 15 2457600 2200
36024914 Dmitriy.Belichenko E March 6, 2018, 6:26 p.m. OK GNU C++14 TESTS 23 15 2662400 2200
36037084 Danial E March 7, 2018, 8:24 a.m. OK GNU C++14 TESTS 23 15 9830400 2200
45989756 n_dao107 E Nov. 20, 2018, 9 a.m. OK GNU C++14 TESTS 23 30 409600 2200
42122044 Rzepa E Aug. 26, 2018, 1 p.m. OK GNU C++14 TESTS 23 30 512000 2200
36026767 bestard E March 6, 2018, 7:41 p.m. OK GNU C++14 TESTS 23 30 2048000 2200
36020418 cristb E March 6, 2018, 4:55 p.m. OK GNU C++14 TESTS 23 30 2150400 2200
36016909 xatiantian E March 6, 2018, 4:29 p.m. OK GNU C++14 TESTS 23 30 2355200 2200
36288435 -osdajigu- E March 15, 2018, 12:25 a.m. OK GNU C++14 TESTS 23 30 2457600 2200
59241421 0442A403 E Aug. 21, 2019, 7:57 p.m. OK GNU C++14 TESTS 23 31 512000 2200
56468942 nishank.suresh E July 3, 2019, 10:10 a.m. OK GNU C++17 TESTS 23 30 512000 2200
36073320 InkyFlameMaster E March 8, 2018, 2:01 p.m. OK GNU C++17 TESTS 23 30 2355200 2200
56469011 nishank.suresh E July 3, 2019, 10:12 a.m. OK GNU C++17 TESTS 23 31 512000 2200
53310677 Lucina E April 26, 2019, 6:30 a.m. OK GNU C++17 TESTS 23 31 512000 2200
53424211 anjn98 E April 27, 2019, 12:52 p.m. OK GNU C++17 TESTS 23 31 819200 2200
62415842 dauzee E Oct. 12, 2019, 11:35 a.m. OK GNU C++17 TESTS 23 31 819200 2200
58378198 465798176 E Aug. 6, 2019, 8:57 a.m. OK GNU C++17 TESTS 23 31 819200 2200
57773735 rodz E July 26, 2019, 2:22 a.m. OK GNU C++17 TESTS 23 31 819200 2200
48285665 chinmay0906 E Jan. 12, 2019, 10:18 a.m. OK GNU C++17 TESTS 23 31 1433600 2200
44040794 redotter E Oct. 9, 2018, 2:38 p.m. OK GNU C++17 TESTS 23 31 2048000 2200
52351279 Dukkha E April 5, 2019, 2:41 p.m. OK Java 8 TESTS 23 124 0 2200
36031587 dalt E March 7, 2018, 2:48 a.m. OK Java 8 TESTS 23 139 20787200 2200
36034481 guptautkarsh028 E March 7, 2018, 6:28 a.m. OK Java 8 TESTS 23 140 20684800 2200
36078381 Ahmad E March 8, 2018, 5:37 p.m. OK Java 8 TESTS 23 140 21401600 2200
36060390 flyman3046 E March 8, 2018, 3:52 a.m. OK Java 8 TESTS 23 155 20787200 2200
36030825 Suzukaze E March 7, 2018, 1:31 a.m. OK Java 8 TESTS 23 155 20787200 2200
36026372 U_Square E March 6, 2018, 7:21 p.m. OK Java 8 TESTS 23 155 20889600 2200
36424786 Maulik_Patel E March 20, 2018, 4:58 a.m. OK Java 8 TESTS 23 155 21094400 2200
36099541 ZeyadKhattab E March 9, 2018, 8:49 a.m. OK Java 8 TESTS 23 156 20684800 2200
67850781 ijxjdjd E Dec. 29, 2019, 2:46 a.m. OK Java 8 TESTS 23 171 0 2200
36425236 acmerwu E March 20, 2018, 5:42 a.m. OK MS C++ TESTS 23 202 3686400 2200
36055674 kilayt E March 7, 2018, 8:15 p.m. OK MS C++ TESTS 23 264 2969600 2200
36721406 MenOfPassion E March 29, 2018, 1:24 p.m. OK MS C++ TESTS 23 295 3891200 2200
36721427 MenOfPassion E March 29, 2018, 1:24 p.m. OK MS C++ TESTS 23 296 3891200 2200
36763927 MenOfPassion E March 31, 2018, 5:30 a.m. OK MS C++ TESTS 23 327 3891200 2200
64732915 wh2005 E Nov. 12, 2019, 9:06 a.m. OK MS C++ 2017 TESTS 23 78 204800 2200
63760488 EDawn E Oct. 30, 2019, 3:21 a.m. OK MS C++ 2017 TESTS 23 78 13004800 2200
60501485 pajenegod E Sept. 13, 2019, 6:56 p.m. OK PyPy 2 TESTS 23 234 12800000 2200

remove filters

Back to search problems