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 20:16TudyMTudyMScore: 4,709Success
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 20:184,707154,907,908135,476,0001,046,0002,367,488
2May 3, 2026 20:184,708152,632,505136,536,00002,371,584
3May 3, 2026 20:184,708155,602,885135,496,0001,042,0002,363,392
4May 3, 2026 20:184,709154,838,407135,514,0001,069,0002,383,872
5May 3, 2026 20:184,709153,348,318135,558,0001,021,0002,363,392
6May 3, 2026 20:184,711153,561,711135,573,0001,047,0002,375,680
7May 3, 2026 20:184,716153,258,247135,747,0001,038,0002,363,392
8May 3, 2026 20:184,724155,308,770135,980,0001,024,0002,371,584
9May 3, 2026 20:184,726155,089,101135,988,0001,080,0002,371,584