Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit bd45673

Browse files
1770: MLE & TLE
1 parent 5e361fd commit bd45673

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

‎c/1700-1799/1770-maximum-score-from-performing-multiplication-operations_MLE_TLE.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@
99
* 下个文件再从头开始...
1010
*/
1111

12+
#include <stdint.h>
1213
#include "c/data-structures/array.h"
1314
#include "c/test.h"
1415

15-
struct Cell{
16+
struct Cell{
1617
int v; // value
1718
int p; // [p, q]
1819
int q;
@@ -35,8 +36,8 @@ int maximumScore(int *nums, int numsSize, int *multipliers, int multipliersSize)
3536

3637
int max = INT32_MIN;
3738
for (int i = 0; i < 1 << multipliersSize; i++) {
38-
if (table[multipliersSize-1][i].v > max) {
39-
max = table[multipliersSize-1][i].v;
39+
if (table[multipliersSize-1][i].v > max) {
40+
max = table[multipliersSize-1][i].v;
4041
}
4142
}
4243

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /