2769.cpp (106B)
1 class Solution { 2 public: 3 int theMaximumAchievableX(int num, int t) const { return num + 2 * t; } 4 };