Codeforces Global Round 4

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
1178 Codeforces Global Round 4 FINISHED False 9000 168186299 July 20, 2019, 3:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 4336 ) E Archaeology PROGRAMMING brute force constructive algorithms greedy strings 1900

B'Alice bought a Congo Prime Video subscription and was watching a documentary on the archaeological findings from Factor 's Island on Loch Katrine in Scotland. The archaeologists found a book whose age and origin are unknown. Perhaps Alice can make some sense of it? The book contains a single string of characters "a", "b" and "c". It has been pointed out that no two consecutive characters are the same. It has also been conjectured that the string contains an unusually long subsequence that reads the same from both sides. Help Alice verify this by finding such subsequence that contains at least half of the characters of the original string, rounded down. Note that you don 't have to maximise the length of it. A string a is a subsequence of a string b if a can be obtained from b by deletion of several (possibly, zero or all) characters. The input consists of a single string s ( 2 <= q |s| <= q 10^6 ). The string s consists only of characters "a", "b", "c". It is guaranteed that no two consecutive characters are equal. Output a palindrome t that is a subsequence of s and |t| geq lfloor frac{|s|}{2} rfloor . If there are multiple solutions, you may print any of them. You don 't have to maximise the length of t . If there are no solutions, output a string "IMPOSSIBLE" (quotes for clarity). In the first example, other valid answers include "cacac", "caac", "aca" and "ccc". '...

Tutorials

E

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
57404310 hos.lyric E July 20, 2019, 4:34 p.m. OK D TESTS 34 62 4198400 1900
64096793 rr_ E Nov. 2, 2019, 2:08 p.m. OK D TESTS 41 62 11571200 1900
57471650 ruban E July 21, 2019, 6:31 p.m. OK Delphi TESTS 41 654 131072000 1900
57404361 sansen E July 20, 2019, 4:34 p.m. OK GNU C11 TESTS 34 31 3072000 1900
65428765 Khozhaev E Nov. 20, 2019, 11:28 a.m. OK GNU C11 TESTS 41 46 2048000 1900
57422409 jschr E July 20, 2019, 6:59 p.m. OK GNU C11 TESTS 34 46 2048000 1900
57494222 MRoy E July 22, 2019, 8:02 a.m. OK GNU C11 TESTS 41 46 2969600 1900
57600767 coderbd E July 23, 2019, 3:42 p.m. OK GNU C11 TESTS 41 46 11980800 1900
57418265 4c5948 E July 20, 2019, 5:53 p.m. OK GNU C11 TESTS 34 62 3379200 1900
57415721 a27573 E July 20, 2019, 5:36 p.m. OK GNU C++11 TESTS 34 31 1536000 1900
66892477 ekaerovets E Dec. 14, 2019, 9:34 p.m. OK GNU C++11 TESTS 41 31 1536000 1900
57397206 just_soso E July 20, 2019, 4:07 p.m. OK GNU C++11 TESTS 34 31 1638400 1900
57415161 D2JPJ2D E July 20, 2019, 5:32 p.m. OK GNU C++11 TESTS 34 31 1638400 1900
58437418 _WAautomaton E Aug. 7, 2019, 2:32 p.m. OK GNU C++11 TESTS 41 31 1843200 1900
57836835 zyt1253679098 E July 27, 2019, 7:52 a.m. OK GNU C++11 TESTS 41 31 1843200 1900
57616207 ILoLy E July 24, 2019, 1:41 a.m. OK GNU C++11 TESTS 41 31 1843200 1900
57675288 mtr2004 E July 24, 2019, 3:37 p.m. OK GNU C++11 TESTS 41 31 1843200 1900
57821997 vjudge1 E July 27, 2019, 12:11 a.m. OK GNU C++11 TESTS 41 31 1843200 1900
57575303 lukelin E July 23, 2019, 6:47 a.m. OK GNU C++11 TESTS 41 31 1843200 1900
59702696 ljc1301 E Aug. 30, 2019, 11:21 a.m. OK GNU C++14 TESTS 41 31 2048000 1900
57457685 bluefi E July 21, 2019, 12:16 p.m. OK GNU C++14 TESTS 39 31 2048000 1900
57401761 16silver E July 20, 2019, 4:23 p.m. OK GNU C++14 TESTS 34 31 2048000 1900
57400250 natsugiri E July 20, 2019, 4:17 p.m. OK GNU C++14 TESTS 34 31 2048000 1900
57399920 yfzcsc E July 20, 2019, 4:16 p.m. OK GNU C++14 TESTS 34 31 2048000 1900
57409352 Svlad_Cjelli E July 20, 2019, 4:58 p.m. OK GNU C++14 TESTS 34 31 2150400 1900
57429239 adi_g E July 20, 2019, 11:11 p.m. OK GNU C++14 TESTS 34 31 2150400 1900
58220157 plekkpea E Aug. 3, 2019, 12:16 p.m. OK GNU C++14 TESTS 41 31 2252800 1900
57581456 vladalos E July 23, 2019, 9:01 a.m. OK GNU C++14 TESTS 41 31 2560000 1900
60831287 MB1151 E Sept. 19, 2019, 7:01 a.m. OK GNU C++14 TESTS 41 31 2969600 1900
57411040 adamgibiadam E July 20, 2019, 5:07 p.m. OK GNU C++17 TESTS 34 31 2048000 1900
57462981 ivandr E July 21, 2019, 2:26 p.m. OK GNU C++17 TESTS 40 31 2048000 1900
58908828 AlphaWA E Aug. 16, 2019, 12:15 p.m. OK GNU C++17 TESTS 41 31 2048000 1900
57479333 daxindg E July 22, 2019, 1:26 a.m. OK GNU C++17 TESTS 41 31 2150400 1900
62826429 EntropyX E Oct. 17, 2019, 6:14 p.m. OK GNU C++17 TESTS 41 31 2150400 1900
65757566 It_Wasnt_Me E Nov. 26, 2019, 2:34 p.m. OK GNU C++17 TESTS 41 31 2150400 1900
59606014 APwhitehat E Aug. 28, 2019, 8:50 a.m. OK GNU C++17 TESTS 41 31 2150400 1900
58033692 Fuad E July 30, 2019, 5:05 p.m. OK GNU C++17 TESTS 41 31 2150400 1900
57489362 Rohit0718 E July 22, 2019, 6:33 a.m. OK GNU C++17 TESTS 41 31 2150400 1900
57484422 linsinn E July 22, 2019, 4:23 a.m. OK GNU C++17 TESTS 41 31 2150400 1900
57410809 kirigiri E July 20, 2019, 5:05 p.m. OK Haskell TESTS 34 312 36966400 1900
64595458 IslamTalipovTop E Nov. 9, 2019, 4:29 p.m. OK Java 11 TESTS 41 202 0 1900
63395648 Shady51 E Oct. 25, 2019, 4:35 p.m. OK Java 11 TESTS 41 202 204800 1900
62594711 Agnimandur E Oct. 15, 2019, 12:39 a.m. OK Java 8 TESTS 41 124 0 1900
60910475 dtsarun E Sept. 20, 2019, 5:36 a.m. OK Java 8 TESTS 41 124 0 1900
60330629 yaoct E Sept. 10, 2019, 5:41 a.m. OK Java 8 TESTS 41 124 0 1900
57564872 MartyByrde E July 23, 2019, 2:35 a.m. OK Java 8 TESTS 41 124 0 1900
57508376 WashRoom E July 22, 2019, 12:49 p.m. OK Java 8 TESTS 41 124 0 1900
57434947 Minaa E July 21, 2019, 4:10 a.m. OK Java 8 TESTS 38 124 0 1900
57433460 avijit_agarwal E July 21, 2019, 3:10 a.m. OK Java 8 TESTS 38 124 0 1900
57425900 hiromi_ayase E July 20, 2019, 8:22 p.m. OK Java 8 TESTS 34 124 0 1900
68386786 amolpratap007 E Jan. 8, 2020, 6:22 a.m. OK Java 8 TESTS 41 139 0 1900
57426995 armking E July 20, 2019, 9:04 p.m. OK Java 8 TESTS 34 139 0 1900
57451697 Spheniscine E July 21, 2019, 9:57 a.m. OK Kotlin TESTS 39 234 409600 1900
57401865 knightL E July 20, 2019, 4:24 p.m. OK Kotlin TESTS 34 234 6553600 1900
57422302 Vasily_PML30 E July 20, 2019, 6:58 p.m. OK Kotlin TESTS 34 639 55705600 1900
57423440 sergmel E July 20, 2019, 7:17 p.m. OK Mono C# TESTS 34 93 15257600 1900
57467555 og.kostya E July 21, 2019, 4:16 p.m. OK Mono C# TESTS 40 108 12595200 1900
57418089 kuuso E July 20, 2019, 5:51 p.m. OK Mono C# TESTS 34 108 13004800 1900
57627427 omikad E July 24, 2019, 7:33 a.m. OK Mono C# TESTS 41 124 19763200 1900
57409109 Yupiteru E July 20, 2019, 4:56 p.m. OK Mono C# TESTS 34 124 147763200 1900
57787963 eki E July 26, 2019, 8:28 a.m. OK Mono C# TESTS 41 140 6246400 1900
57401544 math957963 E July 20, 2019, 4:22 p.m. OK MS C++ TESTS 34 31 2048000 1900
57598793 vjudge3 E July 23, 2019, 2:56 p.m. OK MS C++ TESTS 41 62 2560000 1900
57508657 vjudge2 E July 22, 2019, 12:55 p.m. OK MS C++ TESTS 41 62 5017600 1900
57460861 Sorin1932 E July 21, 2019, 1:35 p.m. OK MS C++ TESTS 40 78 2560000 1900
64102115 vjudge4 E Nov. 2, 2019, 3:50 p.m. OK MS C++ TESTS 41 78 5017600 1900
57418706 q3540555 E July 20, 2019, 5:55 p.m. OK MS C++ 2017 TESTS 34 46 2048000 1900
57405057 ZloyNegr E July 20, 2019, 4:37 p.m. OK MS C++ 2017 TESTS 34 46 2048000 1900
57475356 omerb.zeybek E July 21, 2019, 9:03 p.m. OK MS C++ 2017 TESTS 41 46 2048000 1900
57557786 hanna_d E July 22, 2019, 9:01 p.m. OK MS C++ 2017 TESTS 41 46 2048000 1900
58518001 Yanhui E Aug. 10, 2019, 2:02 a.m. OK MS C++ 2017 TESTS 41 46 2048000 1900
57580794 hwangganzi E July 23, 2019, 8:47 a.m. OK MS C++ 2017 TESTS 41 46 2560000 1900
57403914 tang0404 E July 20, 2019, 4:32 p.m. OK MS C++ 2017 TESTS 34 46 2969600 1900
57424315 pseuda E July 20, 2019, 7:36 p.m. OK MS C++ 2017 TESTS 34 46 6144000 1900
57423517 youx E July 20, 2019, 7:18 p.m. OK MS C++ 2017 TESTS 34 46 10035200 1900
57467542 extremum E July 21, 2019, 4:16 p.m. OK MS C++ 2017 TESTS 40 62 1945600 1900
57425586 ergatis E July 20, 2019, 8:12 p.m. OK Ocaml TESTS 34 46 10240000 1900
57416749 bcollet E July 20, 2019, 5:42 p.m. OK PyPy 2 TESTS 34 140 14950400 1900
57423135 c1729 E July 20, 2019, 7:11 p.m. OK PyPy 2 TESTS 34 186 28774400 1900
57426907 raj1307 E July 20, 2019, 9 p.m. OK PyPy 2 TESTS 34 187 26214400 1900
57408197 kabeer27 E July 20, 2019, 4:52 p.m. OK PyPy 2 TESTS 34 202 18329600 1900
57870734 frostD E July 28, 2019, 1:32 a.m. OK PyPy 2 TESTS 41 265 31539200 1900
59530102 yumtam E Aug. 26, 2019, 2:43 p.m. OK PyPy 2 TESTS 41 373 23142400 1900
57424507 c1729 E July 20, 2019, 7:41 p.m. OK PyPy 2 TESTS 34 748 139264000 1900
57423616 c1729 E July 20, 2019, 7:20 p.m. OK PyPy 2 TESTS 34 764 139264000 1900
69529325 jdbermeol E Jan. 25, 2020, 4:26 p.m. OK PyPy 3 TESTS 41 264 16588800 1900
57417559 TheProgrammer256 E July 20, 2019, 5:48 p.m. OK PyPy 3 TESTS 34 280 12595200 1900
57506652 HybridSkills E July 22, 2019, 12:16 p.m. OK PyPy 3 TESTS 41 280 19148800 1900
57423492 aberent E July 20, 2019, 7:18 p.m. OK PyPy 3 TESTS 34 296 20684800 1900
57961616 Pokeylope E July 29, 2019, 11:15 p.m. OK PyPy 3 TESTS 41 312 26931200 1900
57415486 jakethekoenig E July 20, 2019, 5:34 p.m. OK PyPy 3 TESTS 34 327 12492800 1900
57845107 Akash_123 E July 27, 2019, 10:48 a.m. OK PyPy 3 TESTS 41 342 45260800 1900
57415283 vinuthegr8 E July 20, 2019, 5:33 p.m. OK PyPy 3 TESTS 34 358 37171200 1900
57434161 StinsonOvO E July 21, 2019, 3:38 a.m. OK PyPy 3 TESTS 38 358 39628800 1900
57844967 Akash_123 E July 27, 2019, 10:43 a.m. OK PyPy 3 TESTS 41 358 45568000 1900
57399872 nwi E July 20, 2019, 4:16 p.m. OK Python 2 TESTS 34 327 2662400 1900
57501597 Helli.code E July 22, 2019, 10:24 a.m. OK Python 2 TESTS 41 405 9625600 1900
57410708 MathisHammel E July 20, 2019, 5:05 p.m. OK Python 2 TESTS 34 498 5939200 1900
57472841 wolffd E July 21, 2019, 7:13 p.m. OK Python 2 TESTS 41 576 5017600 1900
57469267 -Morass- E July 21, 2019, 5:14 p.m. OK Python 2 TESTS 41 841 6246400 1900
57476409 llllllll E July 21, 2019, 10 p.m. OK Python 3 TESTS 41 280 4300800 1900
57408311 joe_joe E July 20, 2019, 4:52 p.m. OK Python 3 TESTS 34 374 7475200 1900
57403713 Savit_Gupta E July 20, 2019, 4:31 p.m. OK Python 3 TESTS 34 436 3891200 1900
57402495 markin2000 E July 20, 2019, 4:26 p.m. OK Python 3 TESTS 34 452 7475200 1900
57479558 julianferres E July 22, 2019, 1:34 a.m. OK Python 3 TESTS 41 452 9830400 1900
57408631 Kiri8128 E July 20, 2019, 4:54 p.m. OK Python 3 TESTS 34 467 10547200 1900
57411643 plusplus6408 E July 20, 2019, 5:10 p.m. OK Python 3 TESTS 34 482 4915200 1900
57430503 arihant72600 E July 21, 2019, 12:48 a.m. OK Python 3 TESTS 38 499 3891200 1900
57601430 deadguy E July 23, 2019, 3:58 p.m. OK Python 3 TESTS 41 499 5017600 1900
57705959 patrick_sliwinski E July 24, 2019, 8:02 p.m. OK Python 3 TESTS 41 561 4915200 1900
57411989 EbTech E July 20, 2019, 5:13 p.m. OK Rust TESTS 34 77 9420800 1900
57403155 tuna_salad E July 20, 2019, 4:29 p.m. OK Rust TESTS 34 78 3686400 1900
57423550 limed E July 20, 2019, 7:19 p.m. OK Scala TESTS 34 467 4198400 1900

remove filters

Back to search problems