ORAC
Learn
Problems
Competitions
Leaderboards
...
Log In
Register
Beautiful Buildings
Statement
Submissions
Hall of Fame
Report Issue
In 2025, this problem was updated to use a simpler way of handling input and output, called standard input and output. You can read more about this change by
clicking here
.
Time Limit
Memory Limit
1.0 second
1024 MiB
Log in
to submit!
If the statement isn't loading correctly, you can
open it in a new tab
.
Attachments
Solution Templates
Java
buildings.java
C++
buildings.cpp
C
buildings.c
Python
buildings.py
Problem info
Subtask 1 (25 points) has 14 cases.
Subtask 2 (20 points) has 23 cases.
Subtask 3 (20 points) has 33 cases.
Subtask 4 (35 points) has 44 cases.