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 22, 2026 01:14A_ShamanA_ShamanScore: 8,573Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 22, 2026 01:148,548257,128,927223,653,00024,245,0002,117,632
2Jun 22, 2026 01:148,563257,659,590223,953,00024,400,0002,117,632
3Jun 22, 2026 01:148,568258,046,194224,858,00023,622,0002,117,632
4Jun 22, 2026 01:148,571258,342,739224,998,00023,576,0002,117,632
5Jun 22, 2026 01:148,573257,929,270224,957,00023,672,0002,117,632
6Jun 22, 2026 01:148,574258,003,658224,930,00023,743,0002,117,632
7Jun 22, 2026 01:148,599259,471,968224,445,00024,929,0002,117,632
8Jun 22, 2026 01:148,600259,097,598224,496,00024,919,0002,117,632
9Jun 22, 2026 01:148,609259,018,540225,513,00024,174,0002,117,632