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 listFeb 5, 2025 11:32KeefeKeefeScore: 19,667Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 5, 2025 11:3219,621595,865,612386,324,000182,680,0002,297,856
2Feb 5, 2025 11:3219,635603,855,084383,605,000185,808,0002,408,448
3Feb 5, 2025 11:3219,652594,953,373395,935,000173,971,0002,437,120
4Feb 5, 2025 11:3219,655598,259,286395,006,000175,002,0002,404,352
5Feb 5, 2025 11:3219,667600,764,608389,542,000180,787,0002,441,216
6Feb 5, 2025 11:3219,682605,568,773385,854,000184,930,0002,265,088
7Feb 5, 2025 11:3219,696603,021,080385,455,000185,737,0002,375,680
8Feb 5, 2025 11:3219,701603,194,014406,518,000164,804,0002,293,760
9Feb 5, 2025 11:3219,969605,421,501390,385,000188,702,0002,445,312