April Fools Day Contest 2024

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
1952 April Fools Day Contest 2024 FINISHED False 7200 19841099 April 1, 2024, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 258 ) E Sweep Line PROGRAMMING combinatorics games math

B'The first line contains one integer n ( 1 <= q n <= q 10^5 ) -- the length of the array a . The second line contains n integers a_1, a_2, ldots, a_n ( 0 <= q a_i <= q 2 ) -- the array a . Output a single integer -- the number of solutions, modulo 20240401 . In the first sample, the array looks like this: color{blue}{1} color{blue}{1} color{darkgreen}{2} color{blue}{1} color{blue}{1} color{darkgreen}{2} color{gray}{0} Obviously, the answer here is 1 pmod{20240401} . In the second sample, the array looks like this: color{blue}{1} color{blue}{1} color{darkgreen}{2} color{blue}{1} color{blue}{1} color{blue}{1} color{gray}{0} I do not know why the answer here is 2 pmod{20240401} , I had to take a guess. In the third sample, the array looks like this: color{gray}{0} color{blue}{1} color{darkgreen}{2} color{blue}{1} color{blue}{1} color{blue}{1} color{gray}{0} If the answer here is not 0 pmod{20240401} , I am literally going to explode. '...

Tutorials

April Fools Day Contest 2024 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
254649983 karamkontar E April 2, 2024, 2:52 a.m. OK C# 10 TESTS 39 124 13926400
254649910 karamkontar E April 2, 2024, 2:50 a.m. OK C# 10 TESTS 39 124 28876800

remove filters

Back to search problems