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 listNov 18, 2025 03:30izotoffizotoffError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 8, 2026 16:09C#_user10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 8, 2026 16:10014,687,95501,876,00065,536Exit with code 2: unexpected fault address 0x9d02 fatal error: fault [signal SIGSEGV: segmentation violation code=0x1 addr=0x9d02 pc=0x499eaf] goroutine 1 gp=0xc000002380 m=0 mp=0x570b20 [running]: runtime.throw({0x4bd854?, 0xe?}) /compiler/src/runti...stderr
2Nov 18, 2025 03:307,168236,358,197203,870,0003,997,0002,359,296
3Nov 18, 2025 03:307,168233,594,352205,874,0001,998,0002,351,104
4Nov 18, 2025 03:307,170238,035,177206,932,000999,0002,326,528
5Nov 18, 2025 03:307,170241,686,140204,940,0002,999,0002,334,720
6Nov 18, 2025 03:307,171240,064,871205,960,0001,999,0002,326,528
7Nov 18, 2025 03:307,173241,021,228205,015,0003,000,0002,330,624
8Nov 18, 2025 03:307,173231,146,035207,031,0001,000,0002,326,528
9Nov 18, 2025 03:307,175229,053,995205,065,0003,000,0002,359,296
10Nov 18, 2025 03:307,178232,848,163208,155,00002,363,392