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 21:19TudyMTudyMScore: 4,127Success
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 21:194,121138,623,408118,458,0001,073,0002,371,584
2May 3, 2026 21:194,122136,531,097118,465,0001,073,0002,371,584
3May 3, 2026 21:194,123138,688,307118,499,0001,070,0002,371,584
4May 3, 2026 21:194,123137,004,645118,579,0001,015,0002,379,776
5May 3, 2026 21:194,127134,442,734118,645,0001,043,0002,363,392
6May 3, 2026 21:194,128136,998,139118,639,0001,073,0002,363,392
7May 3, 2026 21:194,128135,960,432118,653,0001,075,0002,367,488
8May 3, 2026 21:194,131135,951,743118,740,0001,072,0002,371,584
9May 3, 2026 21:194,132137,164,201118,778,0001,077,0002,371,584