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 listJan 3, 2026 03:14Josu San MartinJosu San MartinScore: 4,909Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 3, 2026 03:144,907164,125,892142,316,00002,338,816
2Jan 3, 2026 03:144,907163,914,857141,314,0001,002,0002,293,760
3Jan 3, 2026 03:144,908173,788,264142,320,00002,347,008
4Jan 3, 2026 03:144,908167,061,877142,338,00002,293,760
5Jan 3, 2026 03:144,909162,433,205141,355,0001,002,0002,342,912
6Jan 3, 2026 03:144,912164,022,785142,447,00002,289,664
7Jan 3, 2026 03:144,915168,021,860141,538,0001,003,0002,338,816
8Jan 3, 2026 03:144,917166,338,478141,585,0001,004,0002,347,008
9Jan 3, 2026 03:144,926174,458,593140,848,0001,997,0002,338,816