| Name | Language | Tokens Sum | Tokens Part 1 | Tokens Part 2 | Last change | |
|---|---|---|---|---|---|---|
| 1 | Kotlin | 258 | 114 | 144 | 13 hours ago | |
| 2 | Python | 284 | 93 | 191 | 7 hours ago | |
| 3 | C | 405 | 186 | 219 | 11 hours ago |
importmathsheet_grid=[row.split()forrowinopen(0)]total_sum=0forproblemin[[row[i]forrowinsheet_grid]foriinrange(len(sheet_grid[0]))]: problem_ints=list(map(int,problem[:-1])) total_sum+=math.prod(problem_ints)ifproblem[-1]=='*'elsesum(problem_ints)print(total_sum)