Skip to content

Commit e5d3f1d

Browse files
authored
Update cf-100886G.mdx
1 parent 8c20b14 commit e5d3f1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

solutions/gold/cf-100886G.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ using namespace std;
3535

3636
/** @return the product of the given string's digits (-1 if empty) */
3737
ll prod(string s) {
38-
if (!s.length()) return -1;
38+
if (!s.length()) { return -1; }
3939
ll res = 1;
4040
for (char c : s) { res *= c - '0'; }
4141
return res;

0 commit comments

Comments
 (0)