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 listApr 29, 2026 16:53Victor MerckléVictor MerckléScore: 21,839Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 29, 2026 16:5421,752650,747,495620,831,0009,997,0002,424,832stderr
2Apr 29, 2026 16:5421,801650,123,225623,268,0008,989,0002,433,024stderr
3Apr 29, 2026 16:5421,817652,322,390620,705,00011,994,0002,412,544stderr
4Apr 29, 2026 16:5421,831649,165,538624,120,0009,001,0002,547,712stderr
5Apr 29, 2026 16:5421,839653,827,489624,347,0008,990,0002,453,504stderr
6Apr 29, 2026 16:5421,839650,304,473628,342,0004,994,0002,519,040stderr
7Apr 29, 2026 16:5421,871652,498,179624,294,0009,988,0002,387,968stderr
8Apr 29, 2026 16:5421,924653,644,553621,827,00013,996,0002,424,832stderr
9Apr 29, 2026 16:5421,999656,547,191625,990,00011,999,0002,490,368stderr