2026 UP ACM Algolympics Final Round
A. Algolympics Level Editor
time limit per test
1 second
memory limit per test
256 megabytes
input
standard input
output
standard output
Example
Input
10 10 50
Output
@.A#2-+-+-
#.#..####+
.....x!a#-
.#....#X-+
.#a##d#.##
.#....#d..
a####.###.
+#D..9.+#.
c..####.#.
.......C..

B. Bato-Bato Split
time limit per test
2 seconds
memory limit per test
256 megabytes
input
standard input
output
standard output
Example
Input
1
-3 1 2 3
Output
2

C. Cake Cutting
time limit per test
4 seconds
memory limit per test
256 megabytes
input
standard input
output
standard output
Examples
Input
2 3 1
Output
4
Input
2 2 1
Output
4
Input
9 6 3
Output
799

D. Delta Rune
time limit per test
4 seconds
memory limit per test
256 megabytes
input
standard input
output
standard output
Example
Input
2 1 3 8
1 4
3
1 6 7
4
2 8
5 10
3 16
0 1000000000000000000
Output
0.16666666666666665741
0.00000000000000000000
0.50000000000000000000
1.00000000000000000000

E. Expression Game
time limit per test
1 second
memory limit per test
256 megabytes
input
standard input
output
standard output
Example
Input
7 + ?
Output
Plana!

F. Flow++
time limit per test
2 seconds
memory limit per test
256 megabytes
input
standard input
output
standard output
Examples
Input
2
2 5
2 1 2 4
0 2 4 5
2 5
0 1 5 4
0 4 5 1
Output
YES
1 2 1 2 4
4 0 2 1 2 1 0.5 4 0.5 4 5
NO
Input
1
3 8
2 0 6 7
4 0 4 8
6 0 2 7
Output
YES
4 2 0 2 6 3 6 3 7 6 7
9 4 0 4 6.5 6.5 6.5 6.5 7.25 2.5 7.25 2.5 6.5 1 6.5 1 7.75 4 7.75 4 8
5 6 0 6 6 7 6 7 7.5 2 7.5 2 7

G. Gerrymandering
time limit per test
10 seconds
memory limit per test
1024 megabytes
input
standard input
output
standard output
Examples
Input
2 1
RR
RG
RR
Output
2
Input
7 2
RRRRRRR
RRRRRRR
RRRRRRR
Output
21

H. High-Performance Sandbox
time limit per test
3 seconds
memory limit per test
256 megabytes
input
standard input
output
standard output
Example
Input
8 3
1 4 1 2 4 2 3 1
4 6 -2
8 8 3
2 3 -1
Output
6
9
14
10

I. Integer Friends
time limit per test
15 seconds
memory limit per test
256 megabytes
input
standard input
output
standard output
Examples
Input
1 2
Output
1
Input
6 7
Output
0
Input
67 2026
Output
626360669

J. Jigsaw Jumble
time limit per test
4 seconds
memory limit per test
256 megabytes
input
standard input
output
standard output
Example
Input
2
4 4
3 1
4 2
3 4
1 2
4 4
3 1
4 2
3 4
1 2
Output
OK
2 2
2 4
1 3
OK
2 2
3 4
1 2

K. Kinematic Waveguide Testing
time limit per test
1 second
memory limit per test
256 megabytes
input
standard input
output
standard output
Examples
Input
5 2
2 5
17 25
Output
COUPLE
Input
5 2
2 5
555 7777
Output
DEAD

L. Layered Shufflers
time limit per test
3 seconds
memory limit per test
256 megabytes
input
standard input
output
standard output
Examples
Input
3 4 1 4
3 1 4 2
1 2 3 4
1 3 2 4
Output
1
Input
4 5 2 3
5 2 1 3 4
1 2 3 4 5
5 2 1 3 4
1 2 3 4 5
Output
0

M. My Problem Was Not Written By AI
time limit per test
2 seconds
memory limit per test
256 megabytes
input
standard input
output
standard output
Examples
Input
13
how much wood would a woodchuck chuck if a woodchuck could chuck wood
how much would would a woodchuck would if a woodchuck could would would
Output
2
Input
10
to be or not to be that is the question
to bite but not to eat that is the answer
Output
You win this time, Frank.