Arithmetic expressions Sergey Svistunov

Evaluate 100 arithmetic expressions as fast as possible.

Input

One expression per line on STDIN. Each expression contains 50,000 int16 numbers with operators +, -, *, / (integer division) and parentheses (, ).

-19550 - ((-14208 / (13583 + -19215)) + (-16832 / 797 + (9060 / -23627)) + ((-6060) + 24953))
30835 - 3703 - (-20089 * -6261 + ((-28985 - 29627) + (-17828 - (22773 / -4014) * 1630)))

Output

Print the int64 result of each expression, one per line, to STDOUT.

Back to listMay 3, 2026 18:54TudyMTudyMScore: 4,732Success
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 3, 2026 18:564,726156,085,505135,988,0001,070,0002,379,776
2May 3, 2026 18:564,727151,729,804137,099,00002,379,776
3May 3, 2026 18:564,729150,927,324136,092,0001,071,0002,371,584
4May 3, 2026 18:564,731154,081,577136,147,0001,075,0002,379,776
5May 3, 2026 18:564,732153,502,824136,180,0001,074,0002,371,584
6May 3, 2026 18:564,734151,851,350136,208,0001,091,0002,363,392
7May 3, 2026 18:564,734154,412,445136,181,0001,105,0002,371,584
8May 3, 2026 18:564,737153,755,748136,323,0001,069,0002,371,584
9May 3, 2026 18:564,737154,258,419136,300,0001,085,0002,363,392