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:12TudyMTudyMError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 11, 2026 06:21Haha Expert10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 11, 2026 06:21011,975,2552,001,00002,117,632line 1: expected 32767 got 7
2Sep 11, 2026 06:21011,906,0612,010,00002,117,632line 1: expected 32767 got 7
3Sep 11, 2026 06:21013,171,5992,109,00002,117,632line 1: expected 32767 got 7
4May 3, 2026 21:134,179140,504,285121,207,00002,375,680
5May 3, 2026 21:134,183139,970,821121,319,00002,367,488
6May 3, 2026 21:134,190139,960,570120,524,0001,005,0002,371,584
7May 3, 2026 21:134,192139,753,603121,581,00002,379,776
8May 3, 2026 21:134,193136,411,862120,562,0001,038,0002,371,584
9May 3, 2026 21:134,193139,830,556120,557,0001,050,0002,367,488
10May 3, 2026 21:134,193148,127,018121,616,00002,363,392
11May 3, 2026 21:134,196138,982,554120,661,0001,031,0002,375,680
12May 3, 2026 21:134,197136,740,839120,682,0001,036,0002,375,680