2023-2024 ICPC, NERC, Northern Eurasia Onsite (Unrated, Online Mirror, ICPC Rules, Teams Preferred)

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
1912 2023-2024 ICPC, NERC, Northern Eurasia Onsite (Unrated, Online Mirror, ICPC Rules, Teams Preferred) FINISHED False 18000 34727063 Dec. 13, 2023, 7:35 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 7342 ) L LOL Lovers PROGRAMMING strings 800

B"There are n food items lying in a row on a long table. Each of these items is either a loaf of bread (denoted as a capital Latin letter 'L' with ASCII code 76) or an onion (denoted as a capital Latin letter 'O' with ASCII code 79). There is at least one loaf of bread and at least one onion on the table. You and your friend want to divide the food on the table: you will take a prefix of this row (several leftmost items), and the friend will take the rest. However, there are several restrictions: The first line contains one integer n ( 2 <= n <= 200 ) -- the number of food items on the table. The second line contains a string of length n consisting of letters 'L' and 'O'. i -th symbol represents the type of the i -th food item on the table: 'L' stands for a loaf of bread, and 'O' stands for an onion. It is guaranteed that this string contains at least one letter 'L' and at least one letter 'O'. Print one integer -- a number k such that, if you take k leftmost items and your friend takes the remaining n - k items, each of you and your friend get at least one item, your number of loaves is different from your friend's, and your number of onions is different from your friend's. If there are several possible answers, print any of them. If there are no possible answers, print the number -1 . In the first example, in any division the left and the right part contain one loaf of bread. In the second example, the division is 'L' and 'O', and in these two strings the number of loaves is different (1 and 0) and the number of onions is different (0 and 1). In the third example, any number 1, 2 or 3 is a correct answer. "...

Tutorials

Tutorials (PDF)

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
236993064 ssvb L Dec. 13, 2023, 8:35 a.m. OK D TESTS 100 31 204800 800
237112770 ruban L Dec. 14, 2023, 2:58 a.m. OK FPC TESTS 100 31 40448000 800
237040705 lavanyapoudala L Dec. 13, 2023, 12:29 p.m. OK GNU C11 TESTS 100 15 0 800
236999446 atog_1905 rohitsomani L Dec. 13, 2023, 9:10 a.m. OK GNU C11 TESTS 100 15 0 800
236989608 deniskorolev62870 L Dec. 13, 2023, 8:14 a.m. OK GNU C11 TESTS 100 30 0 800
237003996 ahnaf_sadi L Dec. 13, 2023, 9:38 a.m. OK GNU C11 TESTS 100 30 0 800
237006637 himanshi15 DustOfSnow dangiyatharth9 L Dec. 13, 2023, 9:50 a.m. OK GNU C11 TESTS 100 30 0 800
237122159 Miracle0716 L Dec. 14, 2023, 5:43 a.m. OK GNU C11 TESTS 100 30 0 800
236989374 Pavan_kumar_t_v L Dec. 13, 2023, 8:12 a.m. OK GNU C11 TESTS 100 30 0 800
236991140 hanuma_nihar L Dec. 13, 2023, 8:26 a.m. OK GNU C11 TESTS 100 31 0 800
237009046 saaad L Dec. 13, 2023, 9:58 a.m. OK GNU C11 TESTS 100 31 0 800
237106212 QQH L Dec. 13, 2023, 11:40 p.m. OK GNU C++14 TESTS 100 15 0 800
237105351 liuhengxi L Dec. 13, 2023, 11:09 p.m. OK GNU C++14 TESTS 100 15 0 800
237102270 Sultan_Borhan L Dec. 13, 2023, 9:45 p.m. OK GNU C++14 TESTS 100 15 0 800
237122351 adityakeshriofficial123 L Dec. 14, 2023, 5:45 a.m. OK GNU C++14 TESTS 100 15 0 800
237121242 karthi222528 L Dec. 14, 2023, 5:31 a.m. OK GNU C++14 TESTS 100 15 0 800
237118157 a2954898606 L Dec. 14, 2023, 4:44 a.m. OK GNU C++14 TESTS 100 15 0 800
237113638 haulg3 L Dec. 14, 2023, 3:19 a.m. OK GNU C++14 TESTS 100 15 0 800
237110507 mentrible99 L Dec. 14, 2023, 2:05 a.m. OK GNU C++14 TESTS 100 15 0 800
237110138 liuhengyu L Dec. 14, 2023, 1:55 a.m. OK GNU C++14 TESTS 100 15 0 800
237107296 omeganot L Dec. 14, 2023, 12:20 a.m. OK GNU C++14 TESTS 100 15 0 800
237119170 Nabuko L Dec. 14, 2023, 5 a.m. OK GNU C++17 TESTS 100 15 0 800
237122195 sakshamrathi21 L Dec. 14, 2023, 5:43 a.m. OK GNU C++17 TESTS 100 15 0 800
237123157 S.Eleas L Dec. 14, 2023, 5:55 a.m. OK GNU C++17 TESTS 100 15 0 800
237121673 Moha2qr L Dec. 14, 2023, 5:37 a.m. OK GNU C++17 TESTS 100 15 0 800
237121665 StrausKoldun L Dec. 14, 2023, 5:37 a.m. OK GNU C++17 TESTS 100 15 0 800
237121574 minhquanquach L Dec. 14, 2023, 5:35 a.m. OK GNU C++17 TESTS 100 15 0 800
237121570 veerietian L Dec. 14, 2023, 5:35 a.m. OK GNU C++17 TESTS 100 15 0 800
237121451 vedant_270 L Dec. 14, 2023, 5:34 a.m. OK GNU C++17 TESTS 100 15 0 800
237120312 anstan L Dec. 14, 2023, 5:17 a.m. OK GNU C++17 TESTS 100 15 0 800
237120192 Xiomara_YiJie L Dec. 14, 2023, 5:15 a.m. OK GNU C++17 TESTS 100 15 0 800
237116757 avdheshv L Dec. 14, 2023, 4:19 a.m. OK GNU C++17 (64) TESTS 100 15 0 800
237120463 duomotongdelingwu L Dec. 14, 2023, 5:19 a.m. OK GNU C++17 (64) TESTS 100 15 0 800
237111297 hclzdbx L Dec. 14, 2023, 2:25 a.m. OK GNU C++17 (64) TESTS 100 15 0 800
237111105 smna L Dec. 14, 2023, 2:20 a.m. OK GNU C++17 (64) TESTS 100 15 0 800
237109406 t98slider L Dec. 14, 2023, 1:30 a.m. OK GNU C++17 (64) TESTS 100 15 0 800
237108395 xm11 L Dec. 14, 2023, 12:57 a.m. OK GNU C++17 (64) TESTS 100 15 0 800
237107944 xm11 L Dec. 14, 2023, 12:42 a.m. OK GNU C++17 (64) TESTS 100 15 0 800
237086362 Gorko L Dec. 13, 2023, 6:16 p.m. OK GNU C++17 (64) TESTS 100 15 0 800
237086001 DanRo23 L Dec. 13, 2023, 6:12 p.m. OK GNU C++17 (64) TESTS 100 15 0 800
237034535 Zzw1234 L Dec. 13, 2023, 11:58 a.m. OK GNU C++17 (64) TESTS 100 15 0 800
237091311 I_Love_Dr_Abdallah_saad L Dec. 13, 2023, 7:09 p.m. OK GNU C++20 (64) TESTS 100 0 0 800
237087632 Kumarfeldspar L Dec. 13, 2023, 6:28 p.m. OK GNU C++20 (64) TESTS 100 0 2560000 800
237121537 dyson_spherical L Dec. 14, 2023, 5:35 a.m. OK GNU C++20 (64) TESTS 100 15 0 800
237122365 ASIF_-_ASHIK L Dec. 14, 2023, 5:45 a.m. OK GNU C++20 (64) TESTS 100 15 0 800
237122505 hugo1111 L Dec. 14, 2023, 5:47 a.m. OK GNU C++20 (64) TESTS 100 15 0 800
237122616 Blinov_Artemii L Dec. 14, 2023, 5:48 a.m. OK GNU C++20 (64) TESTS 100 15 0 800
237122896 36champ L Dec. 14, 2023, 5:52 a.m. OK GNU C++20 (64) TESTS 100 15 0 800
237122986 Ivan_Filippov L Dec. 14, 2023, 5:53 a.m. OK GNU C++20 (64) TESTS 100 15 0 800
237121333 Anon_chan L Dec. 14, 2023, 5:32 a.m. OK GNU C++20 (64) TESTS 100 15 0 800
237121527 RyoikiTenkai_Void L Dec. 14, 2023, 5:35 a.m. OK GNU C++20 (64) TESTS 100 15 0 800
237017748 kadeksuryam L Dec. 13, 2023, 10:45 a.m. OK Go TESTS 100 31 0 800
237035428 krithikgokuls L Dec. 13, 2023, 12:05 p.m. OK Java 11 TESTS 100 187 1126400 800
237013007 man-ray L Dec. 13, 2023, 10:18 a.m. OK Java 11 TESTS 100 187 1126400 800
237038293 Pulkit299 L Dec. 13, 2023, 12:11 p.m. OK Java 11 TESTS 100 202 1024000 800
237010457 jagadeeshwar03 L Dec. 13, 2023, 10:10 a.m. OK Java 11 TESTS 100 202 1024000 800
237107207 crrystaly L Dec. 14, 2023, 12:17 a.m. OK Java 11 TESTS 100 217 1126400 800
237008876 WvemiY9 L Dec. 13, 2023, 9:56 a.m. OK Java 17 TESTS 100 218 2662400 800
237117479 vinhmqce170001 L Dec. 14, 2023, 4:31 a.m. OK Java 17 TESTS 100 233 2252800 800
237016684 aditya_parate L Dec. 13, 2023, 10:35 a.m. OK Java 17 TESTS 100 233 2355200 800
236992316 Aasritha_V_V L Dec. 13, 2023, 8:28 a.m. OK Java 17 TESTS 100 233 2457600 800
237013562 alle_manoj L Dec. 13, 2023, 10:23 a.m. OK Java 17 TESTS 100 233 2560000 800
237026261 _CSJ L Dec. 13, 2023, 11:25 a.m. OK Java 17 TESTS 100 248 2457600 800
237025152 2100030435 L Dec. 13, 2023, 11:16 a.m. OK Java 17 TESTS 100 249 2457600 800
236989046 yash1234yrh L Dec. 13, 2023, 8:09 a.m. OK Java 17 TESTS 100 264 2457600 800
237014194 ramyasallakunta77 L Dec. 13, 2023, 10:29 a.m. OK Java 21 TESTS 100 327 1843200 800
236990090 coderman2004 L Dec. 13, 2023, 8:18 a.m. OK Java 8 TESTS 100 93 0 800
236985079 yadavDipesh L Dec. 13, 2023, 7:43 a.m. OK Java 8 TESTS 100 108 0 800
237112844 chengzijun_de_xiatian L Dec. 14, 2023, 2:59 a.m. OK Java 8 TESTS 100 124 0 800
237092744 Sumitsingh7 L Dec. 13, 2023, 7:27 p.m. OK Java 8 TESTS 100 139 0 800
236986005 sr71_blackbird mohdabuzaid15 formidablechief_27 L Dec. 13, 2023, 7:50 a.m. OK Java 8 TESTS 100 139 0 800
236985090 yvbf L Dec. 13, 2023, 7:43 a.m. OK Java 8 TESTS 100 139 0 800
236985578 arvindf232 L Dec. 13, 2023, 7:47 a.m. OK Kotlin 1.6 TESTS 100 218 1024000 800
237017179 SlavaG L Dec. 13, 2023, 10:40 a.m. OK Kotlin 1.9 TESTS 100 249 1024000 800
236989706 Freiden _Anton L Dec. 13, 2023, 8:14 a.m. OK Kotlin 1.9 TESTS 100 249 1331200 800
237092115 IlshatIzmaylov L Dec. 13, 2023, 7:19 p.m. OK MS C++ 2017 TESTS 100 15 0 800
237000482 BeverFuns L Dec. 13, 2023, 9:19 a.m. OK PascalABC.NET TESTS 100 202 102400 800
237006264 MinhQNgo L Dec. 13, 2023, 9:47 a.m. OK PyPy 3 TESTS 100 77 1536000 800
237006929 MinhQNgo L Dec. 13, 2023, 9:53 a.m. OK PyPy 3 TESTS 100 78 0 800
237116511 shaik_sameer31 L Dec. 14, 2023, 4:14 a.m. OK PyPy 3 TESTS 100 92 0 800
237121530 tarakakiranmayi L Dec. 14, 2023, 5:35 a.m. OK PyPy 3 TESTS 100 93 0 800
237007116 abdurakhmonnn L Dec. 13, 2023, 9:54 a.m. OK PyPy 3 TESTS 100 93 0 800
236992798 mus2009 raxmonzoday egoist228 L Dec. 13, 2023, 8:32 a.m. OK PyPy 3 TESTS 100 93 0 800
236985338 feidada fpcsong loujunjie L Dec. 13, 2023, 7:45 a.m. OK PyPy 3 TESTS 100 93 2048000 800
237107656 rgupta765 L Dec. 14, 2023, 12:32 a.m. OK PyPy 3 TESTS 100 108 0 800
237021471 okuzn L Dec. 13, 2023, 11:01 a.m. OK PyPy 3 TESTS 100 108 0 800
237116081 ramann_696 L Dec. 14, 2023, 4:06 a.m. OK PyPy 3-64 TESTS 100 62 0 800
237114327 DoubleAcrobat20 L Dec. 14, 2023, 3:33 a.m. OK PyPy 3-64 TESTS 100 62 0 800
237104719 re-wa-tl-ok L Dec. 13, 2023, 10:49 p.m. OK PyPy 3-64 TESTS 100 62 0 800
237096638 drNarzullayev L Dec. 13, 2023, 8:20 p.m. OK PyPy 3-64 TESTS 100 62 0 800
237085994 tnowakow L Dec. 13, 2023, 6:12 p.m. OK PyPy 3-64 TESTS 100 62 0 800
237083447 Axel_Click L Dec. 13, 2023, 5:46 p.m. OK PyPy 3-64 TESTS 100 62 0 800
237026582 Reprogram0891 L Dec. 13, 2023, 11:28 a.m. OK PyPy 3-64 TESTS 100 62 0 800
237024976 bhargvk L Dec. 13, 2023, 11:14 a.m. OK PyPy 3-64 TESTS 100 62 0 800
237017411 ReSi L Dec. 13, 2023, 10:42 a.m. OK PyPy 3-64 TESTS 100 62 0 800
237009643 afck0478 L Dec. 13, 2023, 10:03 a.m. OK PyPy 3-64 TESTS 100 62 0 800
237121735 Noel_Manuel L Dec. 14, 2023, 5:37 a.m. OK Python 3 TESTS 100 46 0 800
237119677 amarsai9 L Dec. 14, 2023, 5:08 a.m. OK Python 3 TESTS 100 46 0 800
237118782 rithvika_964 L Dec. 14, 2023, 4:54 a.m. OK Python 3 TESTS 100 46 0 800
237118319 2100031324 L Dec. 14, 2023, 4:46 a.m. OK Python 3 TESTS 100 46 0 800
237113820 surajcodeforce L Dec. 14, 2023, 3:22 a.m. OK Python 3 TESTS 100 46 0 800
237093224 Has-Borutocu L Dec. 13, 2023, 7:33 p.m. OK Python 3 TESTS 100 46 0 800
237089305 Samoed L Dec. 13, 2023, 6:45 p.m. OK Python 3 TESTS 100 46 0 800
237088623 ThreeOfHeart L Dec. 13, 2023, 6:38 p.m. OK Python 3 TESTS 100 46 0 800
237086869 CodeArmy L Dec. 13, 2023, 6:21 p.m. OK Python 3 TESTS 100 46 0 800
237033600 aditya.jyoti.cse22 L Dec. 13, 2023, 11:50 a.m. OK Python 3 TESTS 100 46 0 800
237100497 0x81 L Dec. 13, 2023, 9:14 p.m. OK Ruby 3 TESTS 100 452 819200 800
237118212 WAPretest2 L Dec. 14, 2023, 4:45 a.m. OK Rust 2021 TESTS 100 15 0 800
237090006 mikkk L Dec. 13, 2023, 6:53 p.m. OK Rust 2021 TESTS 100 15 0 800
237003880 NotSpaceBoy L Dec. 13, 2023, 9:37 a.m. OK Rust 2021 TESTS 100 15 0 800
237079912 L Dec. 13, 2023, 5:25 p.m. OK Unknown TESTS 0 0 0 800
237079645 L Dec. 13, 2023, 5:25 p.m. OK Unknown TESTS 0 0 0 800
237079548 L Dec. 13, 2023, 5:25 p.m. OK Unknown TESTS 0 0 0 800
237079156 L Dec. 13, 2023, 5:25 p.m. OK Unknown TESTS 0 0 0 800
237078959 L Dec. 13, 2023, 5:25 p.m. OK Unknown TESTS 0 0 0 800
237078911 L Dec. 13, 2023, 5:25 p.m. OK Unknown TESTS 0 0 0 800
237078888 L Dec. 13, 2023, 5:25 p.m. OK Unknown TESTS 0 0 0 800
237078835 L Dec. 13, 2023, 5:25 p.m. OK Unknown TESTS 0 0 0 800
237078820 L Dec. 13, 2023, 5:25 p.m. OK Unknown TESTS 0 0 0 800
237078788 L Dec. 13, 2023, 5:25 p.m. OK Unknown TESTS 0 0 0 800

remove filters

Back to search problems