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 01:45Joad NacerJoad NacerScore: 6,294Success
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 01:456,287201,999,092181,315,0001,001,0002,428,928
2Dec 24, 2024 01:456,288207,041,461180,358,0002,003,0002,527,232
3Dec 24, 2024 01:456,292204,748,910181,467,0001,002,0002,433,024
4Dec 24, 2024 01:456,293207,722,297180,492,0002,005,0002,437,120
5Dec 24, 2024 01:456,294207,518,250180,511,0002,005,0002,510,848
6Dec 24, 2024 01:456,294217,171,106179,512,0003,008,0002,433,024
7Dec 24, 2024 01:456,294202,139,152181,527,0001,002,0002,531,328
8Dec 24, 2024 01:456,295207,737,298179,540,0003,009,0002,437,120
9Dec 24, 2024 01:456,302210,798,703179,758,0002,995,0002,437,120