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 21:27TudyMTudyMScore: 4,124Success
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 21:274,113136,731,358119,282,00002,387,968
2May 3, 2026 21:274,117136,333,949118,391,0001,020,0002,363,392
3May 3, 2026 21:274,120138,632,806119,496,00002,387,968
4May 3, 2026 21:274,124141,318,521118,598,0001,026,0002,383,872
5May 3, 2026 21:274,124133,829,374118,571,0001,043,0002,383,872
6May 3, 2026 21:274,126138,875,653119,677,00002,379,776
7May 3, 2026 21:274,127137,421,080118,658,0001,026,0002,387,968
8May 3, 2026 21:274,130138,567,583118,741,0001,036,0002,314,240
9May 3, 2026 21:274,132138,794,776118,797,0001,039,0002,379,776