Open lrvideckis opened 2 weeks ago
for testing, I found this https://github.com/suisen-cp/cp-library-cpp/blob/main/test/src/number/stern_brocot_tree/abc273_h.test.cpp#L41 but that seems too complicated for me
So I'm gonna test on this problem https://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=GRL_5_B with solution like:
for testing, I found this https://github.com/suisen-cp/cp-library-cpp/blob/main/test/src/number/stern_brocot_tree/abc273_h.test.cpp#L41 but that seems too complicated for me
So I'm gonna test on this problem https://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=GRL_5_B with solution like: