2023-2024 ICPC, Asia Jakarta Regional Contest (Online Mirror, Unrated, 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
1906 2023-2024 ICPC, Asia Jakarta Regional Contest (Online Mirror, Unrated, ICPC Rules, Teams Preferred) FINISHED False 18000 35601863 Dec. 3, 2023, 4:35 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 812 ) H Twin Friends PROGRAMMING combinatorics dp

B"You meet two new friends who are twins. The name of the elder twin is A , which consists of N characters. While the name of the younger twin is B , which consists of M characters. It is known that N <= q M . You want to call each of them with a nickname. For the elder twin, you want to pick any permutation of A as the nickname. For the younger twin, you want to remove exactly M - N characters from any permutation of B . Denote the nicknames of the elder twin and the younger twin as A' and B' , respectively. You want the nicknames to satisfy the following requirement. For each i that satisfies 1 <= q i <= q N , B'_i must be equal to either A'_i or the next letter that follows alphabetically after A'_i (if such a next letter exists). Determine the number of different pairs of nicknames (A', B') that satisfy the requirement. Two pairs of nicknames are considered different if at least one of the nicknames are different. As the result might be large, find the answer modulo 998 ,244 ,353 . The first line consists of two integers N M ( 1 <= q N <= q M <= q 200 ,000 ). The second line consists of a string A of length N . The third line consists of a string B of length M . All strings consist of only upper-case letters. Output a single integer representing number of different pairs (A', B') that satisfy the requirement, modulo 998 ,244 ,353 . Explanation for the sample input/output #1 The 9 pairs are: Explanation for the sample input/output #2 The 120 pairs are the pairs where A' is a permutation of BINUS and B' = A' . "...

Tutorials

problem_analysis.pdf

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
235489137 DanWin zhouzepeng_2023 Yaimsea H Dec. 3, 2023, 8:26 a.m. OK GNU C++14 TESTS 73 31 54886400
235497646 PEIMUDA bilibilitdasc Error_Yuan H Dec. 3, 2023, 9:26 a.m. OK GNU C++14 TESTS 73 46 13312000
235490728 igor_the_creator zhouchenfeng REN_REN H Dec. 3, 2023, 8:37 a.m. OK GNU C++14 TESTS 73 46 100454400
235477649 StarSilk H Dec. 3, 2023, 7:01 a.m. OK GNU C++14 TESTS 73 61 50278400
235497173 UTE_Kai lamduybao03 canhnam357 H Dec. 3, 2023, 9:23 a.m. OK GNU C++14 TESTS 73 140 61849600
235479769 AnosVoldigoad Linmobi HHH666666 H Dec. 3, 2023, 7:18 a.m. OK GNU C++14 TESTS 73 187 7987200
235481715 KKT_89 Puranya_ ikefumy H Dec. 3, 2023, 7:34 a.m. OK GNU C++17 TESTS 73 31 27545600
235503272 _chroneZ H Dec. 3, 2023, 10:10 a.m. OK GNU C++17 TESTS 73 31 28262400
235477207 aa2985759 AkaiLemon yang12138 H Dec. 3, 2023, 6:58 a.m. OK GNU C++17 TESTS 73 46 28467200
235523703 subhasravani H Dec. 3, 2023, 1:06 p.m. OK GNU C++17 TESTS 73 46 50278400
235505800 lunilay2002 H Dec. 3, 2023, 10:33 a.m. OK GNU C++17 TESTS 73 46 50278400
235469728 robertoeugenio kimmoqt H Dec. 3, 2023, 5:48 a.m. OK GNU C++17 TESTS 73 46 180531200
235485740 aymanrasheed7 serotonin Alpha_Q H Dec. 3, 2023, 8:01 a.m. OK GNU C++17 TESTS 73 61 49356800
235479074 Samsara_soul ship2077 Yu_Jie H Dec. 3, 2023, 7:13 a.m. OK GNU C++17 TESTS 73 62 45260800
235482268 iulianarsenoiu H Dec. 3, 2023, 7:37 a.m. OK GNU C++17 TESTS 73 62 116428800
235482615 yang12139 H Dec. 3, 2023, 7:40 a.m. OK GNU C++17 TESTS 73 108 8704000
235471943 rniya H Dec. 3, 2023, 6:11 a.m. OK GNU C++17 (64) TESTS 73 31 5632000
235476943 heno239 H Dec. 3, 2023, 6:56 a.m. OK GNU C++17 (64) TESTS 73 31 9420800
235622573 MateoCV MarcosK H Dec. 3, 2023, 6:45 p.m. OK GNU C++17 (64) TESTS 73 31 46489600
235486261 hohohahahihi Normie28 ilovevoi H Dec. 3, 2023, 8:06 a.m. OK GNU C++17 (64) TESTS 73 31 49766400
235489495 RealReliauk minstdfx MegalovaniaJ H Dec. 3, 2023, 8:29 a.m. OK GNU C++17 (64) TESTS 73 31 130969600
235477565 cxm1024 IceYukino pp_orange H Dec. 3, 2023, 7:01 a.m. OK GNU C++17 (64) TESTS 73 46 9011200
235473619 cmk666 cyb1010 LXH-cat H Dec. 3, 2023, 6:27 a.m. OK GNU C++17 (64) TESTS 73 46 23244800
235480376 ITworker_Z red-stone H Dec. 3, 2023, 7:23 a.m. OK GNU C++17 (64) TESTS 73 46 23347200
235471444 Karuna arnold518 YeongTree H Dec. 3, 2023, 6:06 a.m. OK GNU C++17 (64) TESTS 73 46 25292800
235474098 Luqman wiwitrifai jonathanirvings H Dec. 3, 2023, 6:31 a.m. OK GNU C++17 (64) TESTS 73 46 44851200
235467918 ecnerwala ksun48 H Dec. 3, 2023, 5:27 a.m. OK GNU C++20 (64) TESTS 73 15 3379200
235477389 negative1 User_Carrot N_z__ H Dec. 3, 2023, 6:59 a.m. OK GNU C++20 (64) TESTS 73 15 3686400
235477455 y0y68 _carrotqq_ Ayachi0721 H Dec. 3, 2023, 7 a.m. OK GNU C++20 (64) TESTS 73 15 28262400
235470267 cabbit Kuroni H Dec. 3, 2023, 5:54 a.m. OK GNU C++20 (64) TESTS 73 30 2560000
235496876 lzoilxy H Dec. 3, 2023, 9:21 a.m. OK GNU C++20 (64) TESTS 73 30 2867200
235472583 CSHwang Sulfox H Dec. 3, 2023, 6:17 a.m. OK GNU C++20 (64) TESTS 73 30 4198400
235637725 mcqueencin ahoraSoyPeor JhonnyZaz H Dec. 3, 2023, 10:14 p.m. OK GNU C++20 (64) TESTS 73 30 52326400
235490387 gloria_mundi Jonas01234500 burg113 H Dec. 3, 2023, 8:35 a.m. OK GNU C++20 (64) TESTS 73 31 1843200
235478159 Turkhuuu H Dec. 3, 2023, 7:05 a.m. OK GNU C++20 (64) TESTS 73 31 2457600
235473670 prvocislo TimaDegt Phantom_Performer H Dec. 3, 2023, 6:27 a.m. OK GNU C++20 (64) TESTS 73 31 2457600
235533171 arvindf232 H Dec. 3, 2023, 2:27 p.m. OK Kotlin 1.6 TESTS 73 280 2048000
235481831 huangxw H Dec. 3, 2023, 7:35 a.m. OK PyPy 3-64 TESTS 73 170 16384000
235488253 nisritha35 sushmanth.dampur8780 H Dec. 3, 2023, 8:20 a.m. OK PyPy 3-64 TESTS 73 670 28569600

remove filters

Back to search problems