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

歡迎光臨散文網(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)遵守國家法律
隆林| 剑阁县| 沙雅县| 托克逊县| 永泰县| 白城市| 锡林郭勒盟| 义马市| 临漳县| 桂平市| 承德县| 赣州市| 读书| 剑川县| 桦南县| 八宿县| 安宁市| 东乌珠穆沁旗| 固阳县| 安国市| 汪清县| 永仁县| 博白县| 包头市| 环江| 射洪县| 云安县| 大方县| 鄂托克前旗| 获嘉县| 长白| 阳西县| 大洼县| 澳门| 呼伦贝尔市| 巴青县| 安岳县| 瓦房店市| 佳木斯市| 土默特右旗| 乳山市|