Codeforces functionality may be limited from June 18, 19:00 (UTC) to June 19, 3:00 AM (UTC) due to technical maintenance. Polygon will work as usual. ×

Dontony's blog

By Dontony, history, 4 years ago, In English

I am getting TLE on the codeforces problem Two Divisors from the recent educational contest. Link to the problem:- https://codeforces.com/problemset/problem/1366/D. Link to my submission:- https://codeforces.com/contest/1366/submission/83516292. Please suggest ways to optimize it.

Thank you.

  • Vote: I like it
  • -3
  • Vote: I do not like it