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 07:16KeefeKeefeScore: 4,600Success
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 07:164,583165,117,079111,915,00020,984,0002,269,184
2Jan 3, 2026 07:164,593163,520,467111,160,00022,031,0002,441,216
3Jan 3, 2026 07:164,595164,411,214111,211,00022,041,0002,269,184
4Jan 3, 2026 07:164,598156,465,494111,274,00022,054,0002,265,088
5Jan 3, 2026 07:164,600158,898,885112,336,00021,063,0002,510,848
6Jan 3, 2026 07:164,613158,404,994111,815,00021,963,0002,510,848
7Jan 3, 2026 07:164,616160,293,653109,883,00023,974,0002,510,848
8Jan 3, 2026 07:164,618162,371,861110,932,00022,985,0002,273,280
9Jan 3, 2026 07:164,628161,909,574110,168,00024,036,0002,519,040