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 listJan 3, 2026 06:21KeefeKeefeScore: 5,841Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 3, 2026 06:215,828196,332,314167,016,0002,000,0002,383,872
2Jan 3, 2026 06:215,833194,716,929168,147,0001,000,0002,273,280
3Jan 3, 2026 06:215,836199,224,523167,249,0002,002,0002,273,280
4Jan 3, 2026 06:215,841195,655,986169,388,00002,379,776
5Jan 3, 2026 06:215,841191,661,657169,396,00002,379,776
6Jan 3, 2026 06:215,841190,394,920169,400,00002,367,488
7Jan 3, 2026 06:215,843191,844,329169,459,00002,273,280
8Jan 3, 2026 06:215,851201,108,409167,673,0001,996,0002,273,280
9Jan 3, 2026 06:215,855196,366,552167,806,0001,997,0002,375,680