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 listApr 29, 2026 17:53Victor MerckléVictor MerckléScore: 24,462Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 29, 2026 17:5524,413724,089,031699,992,0007,999,0002,375,680stderr
2Apr 29, 2026 17:5524,418729,204,830703,149,0004,993,0002,445,312stderr
3Apr 29, 2026 17:5524,430728,530,569701,495,0006,994,0002,498,560stderr
4Apr 29, 2026 17:5524,445732,265,534698,916,0009,998,0002,469,888stderr
5Apr 29, 2026 17:5524,462725,056,406703,414,0005,995,0002,453,504stderr
6Apr 29, 2026 17:5524,477725,460,688698,844,00010,997,0002,437,120stderr
7Apr 29, 2026 17:5524,482727,863,999698,005,00011,982,0002,519,040stderr
8Apr 29, 2026 17:5524,512728,798,679699,890,00010,982,0002,420,736stderr
9Apr 29, 2026 17:5524,513729,295,398699,885,00010,998,0002,396,160stderr