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 19:07TudyMTudyMScore: 4,733Success
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 19:114,725154,255,552137,041,00002,359,296
2May 3, 2026 19:114,730151,170,247136,137,0001,042,0002,367,488
3May 3, 2026 19:114,731152,338,721136,159,0001,055,0002,363,392
4May 3, 2026 19:114,731153,737,553136,128,0001,096,0002,367,488
5May 3, 2026 19:114,733154,699,257136,153,0001,113,0002,379,776
6May 3, 2026 19:114,733157,358,083136,203,0001,076,0002,371,584
7May 3, 2026 19:114,733154,912,754136,195,0001,078,0002,375,680
8May 3, 2026 19:114,733153,275,990136,221,0001,043,0002,371,584
9May 3, 2026 19:114,737157,704,054136,322,0001,072,0002,375,680