Ad
  • Default User Avatar

    Just because it takes 2ms on your computer doesn't necessarily mean anything. On most online judges, the constraints are large enough to tell you if your solution is unoptimized or not.