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:04TudyMTudyMScore: 4,355Success
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:064,353142,734,066125,221,0001,025,0002,367,488
2May 3, 2026 21:064,354147,766,828125,234,0001,049,0002,371,584
3May 3, 2026 21:064,354145,208,085125,213,0001,054,0002,367,488
4May 3, 2026 21:064,355144,991,187125,284,0001,026,0002,371,584
5May 3, 2026 21:064,355144,838,809125,256,0001,067,0002,379,776
6May 3, 2026 21:064,356145,777,649125,296,0001,042,0002,367,488
7May 3, 2026 21:064,356145,046,225125,305,0001,034,0002,375,680
8May 3, 2026 21:064,358141,503,671125,318,0001,064,0002,371,584
9May 3, 2026 21:064,361142,653,207125,452,0001,045,0002,375,680