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 listJun 21, 2026 13:26A_ShamanA_ShamanScore: 7,367Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 21, 2026 13:287,321222,109,431188,968,00023,347,0002,117,632
2Jun 21, 2026 13:287,339222,442,351189,223,00023,612,0002,113,536
3Jun 21, 2026 13:287,340222,521,188189,123,00023,761,0002,117,632
4Jun 21, 2026 13:287,362222,932,619189,466,00024,046,0002,117,632
5Jun 21, 2026 13:287,367222,868,247189,806,00023,859,0002,117,632
6Jun 21, 2026 13:287,376223,563,785189,644,00024,284,0002,117,632
7Jun 21, 2026 13:287,378223,622,213190,077,00023,904,0002,117,632
8Jun 21, 2026 13:287,389224,043,368190,036,00024,248,0002,117,632
9Jun 21, 2026 13:287,401224,396,839190,384,00024,269,0002,117,632