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 19:27TudyMTudyMScore: 4,893Success
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 19:314,890159,146,147140,766,0001,052,0002,367,488
2May 3, 2026 19:314,891157,924,517140,801,0001,066,0002,379,776
3May 3, 2026 19:314,891160,018,303140,759,0001,089,0002,371,584
4May 3, 2026 19:314,892160,379,209140,799,0001,069,0002,363,392
5May 3, 2026 19:314,893158,903,461140,875,0001,050,0002,371,584
6May 3, 2026 19:314,893159,223,121140,845,0001,071,0002,371,584
7May 3, 2026 19:314,894156,411,925140,883,0001,052,0002,375,680
8May 3, 2026 19:314,895161,572,201140,914,0001,045,0002,371,584
9May 3, 2026 19:314,899159,202,979141,025,0001,062,0002,371,584