2413.cpp (102B)
1 class Solution { 2 public: 3 int smallestEvenMultiple(int n) const { return n % 2 ? n * 2 : n; } 4 };