1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-09-13 11:21:42 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee

add leetcode problem-cn part1

This commit is contained in:
2022-03-27 20:37:52 +08:00
parent 8e542045d1
commit c554fc6908
1285 changed files with 108123 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
<p>给你一个整数数组&nbsp;<code>nums</code>,请你找出并返回能被三整除的元素最大和。</p>
<ol>
</ol>
<p>&nbsp;</p>
<p><strong>示例 1</strong></p>
<pre><strong>输入:</strong>nums = [3,6,5,1,8]
<strong>输出:</strong>18
<strong>解释:</strong>选出数字 3, 6, 1 和 8它们的和是 18可被 3 整除的最大和)。</pre>
<p><strong>示例 2</strong></p>
<pre><strong>输入:</strong>nums = [4]
<strong>输出:</strong>0
<strong>解释:</strong>4 不能被 3 整除,所以无法选出数字,返回 0。
</pre>
<p><strong>示例 3</strong></p>
<pre><strong>输入:</strong>nums = [1,2,3,4,4]
<strong>输出:</strong>12
<strong>解释:</strong>选出数字 1, 3, 4 以及 4它们的和是 12可被 3 整除的最大和)。
</pre>
<p>&nbsp;</p>
<p><strong>提示:</strong></p>
<ul>
<li><code>1 &lt;= nums.length &lt;= 4 * 10^4</code></li>
<li><code>1 &lt;= nums[i] &lt;= 10^4</code></li>
</ul>