最美情侣中文字幕电影,在线麻豆精品传媒,在线网站高清黄,久久黄色视频

歡迎光臨散文網(wǎng) 會(huì)員登陸 & 注冊(cè)

Leetcode 2413. Smallest Even Multiple

2022-11-29 09:41 作者:您是打尖兒還是住店呢  | 我要投稿

Given a?positive?integer?n, return?the smallest positive integer that is a multiple of?both?2?and?n.

?

Example 1:

Input: n = 5Output: 10Explanation: The smallest multiple of both 5 and 2 is 10.

Example 2:

Input: n = 6Output: 6Explanation: The smallest multiple of both 6 and 2 is 6. Note that a number is a multiple of itself.

?

Constraints:

  • 1 <= n <= 150

just one row!

Runtime:?0 ms, faster than?100.00%?of?Java?online submissions for?Smallest Even Multiple.

Memory Usage:?40.9 MB, less than?44.65%?of?Java?online submissions for?Smallest Even Multiple.


Leetcode 2413. Smallest Even Multiple的評(píng)論 (共 條)

分享到微博請(qǐng)遵守國家法律
清徐县| 探索| 惠东县| 家居| 富平县| 综艺| 新巴尔虎右旗| 永春县| 新乐市| 安龙县| 阿拉善左旗| 休宁县| 涿鹿县| 阜阳市| 黔西| 泾川县| 元谋县| 当雄县| 延川县| 双流县| 民权县| 卢湾区| 务川| 沭阳县| 石河子市| 工布江达县| 德格县| 乐平市| 沿河| 中方县| 介休市| 雅安市| 东宁县| 墨竹工卡县| 滦南县| 土默特左旗| 苏州市| 彭州市| 元氏县| 星子县| 甘洛县|