| Time Limit: 2 sec / Memory Limit: 1024 MB Problem StatementThere are N cities on a number line. The i-th city is located at coordinate xi. Your objective is to visit all these cities at least once. In order to do so, you will first set a positive integer D. Then, you will depart from coordinate X and perform Move 1 and Move 2 below, as many times as you like:
Find the maximum value of D that enables you to visit all the cities. Here, to visit a city is to travel to the coordinate where that city is located. Constraints
|
C++ Skip | AtCoder
最新推荐文章于 2026-06-16 20:19:21 发布
本文主要探讨了在AtCoder平台上使用C++解决编程问题的一些高级技巧和策略,包括如何优化代码效率,利用C++特性来简化解决问题的过程。


1383

被折叠的 条评论
为什么被折叠?



