CSES - Apartments

Author: Danh Ta Chi Thanh

Solution

Unofficial Editorial

#include <bits/stdc++.h>
using namespace std;
//constant initialization
const int maxn=2e5+10;
//variables used for the current problem
int n,m,k,a[maxn],b[maxn],ans;

Join the USACO Forum!

Stuck on a problem, or don't understand a module? Join the USACO Forum and get help from other competitive programmers!