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 24, 2024 00:01Joad NacerJoad NacerScore: 6,624Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 24, 2024 00:016,622213,108,226191,030,0001,000,0002,441,216
2Dec 24, 2024 00:016,622212,381,646191,037,0001,000,0002,433,024
3Dec 24, 2024 00:016,623218,475,999191,060,0001,000,0002,531,328
4Dec 24, 2024 00:016,624214,637,755192,087,00002,531,328
5Dec 24, 2024 00:016,624216,418,177190,109,0002,001,0002,441,216
6Dec 24, 2024 00:016,626214,633,715191,159,0001,000,0002,433,024
7Dec 24, 2024 00:016,627213,986,192191,190,0001,000,0002,437,120
8Dec 24, 2024 00:016,630218,406,320191,280,0001,001,0002,510,848
9Dec 24, 2024 00:016,631210,708,612192,291,00002,510,848