Editorial (icecuber)

CPH 7.5 (Edit Distance)

Implementation

Time Complexity: O(NM)\mathcal{O}(NM)

#include <algorithm>
#include <iostream>
#include <string>
#include <vector>
using std::cout;
using std::endl;
using std::vector;
int main() {

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!