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 listMay 3, 2026 20:13TudyMTudyMScore: 4,708Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 3, 2026 20:144,701152,791,035136,346,00002,387,968
2May 3, 2026 20:144,706154,388,925135,458,0001,030,0002,383,872
3May 3, 2026 20:144,707155,409,611135,497,0001,016,0002,387,968
4May 3, 2026 20:144,708153,122,986135,501,0001,047,0002,379,776
5May 3, 2026 20:144,708155,061,289135,514,0001,035,0002,392,064
6May 3, 2026 20:144,708153,935,251135,464,0001,071,0002,392,064
7May 3, 2026 20:144,713154,154,778135,680,0001,015,0002,379,776
8May 3, 2026 20:144,714152,434,909135,692,0001,037,0002,383,872
9May 3, 2026 20:144,717156,896,008135,766,0001,031,0002,379,776