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 listDec 23, 2024 23:24Joad NacerJoad NacerScore: 6,672Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 23, 2024 23:246,667223,171,191193,342,00002,437,120
2Dec 23, 2024 23:246,669215,738,602191,384,0002,004,0002,539,520
3Dec 23, 2024 23:246,671211,872,646193,451,00002,437,120
4Dec 23, 2024 23:246,671217,684,922190,446,0003,007,0002,277,376
5Dec 23, 2024 23:246,672216,939,008191,489,0002,005,0002,437,120
6Dec 23, 2024 23:246,673222,723,304192,512,0001,002,0002,527,232
7Dec 23, 2024 23:246,673220,703,859193,526,00002,527,232
8Dec 23, 2024 23:246,674215,913,305193,554,00002,510,848
9Dec 23, 2024 23:246,674220,353,591193,560,00002,428,928