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 listSep 10, 2024 23:03Yuriy LyfenkoYuriy LyfenkoScore: 4,282Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 12, 2024 18:404,274750,479,810122,946,0001,007,0002,531,328
2Dec 12, 2024 18:404,274747,652,966122,953,0001,007,0002,457,600
3Dec 12, 2024 18:414,275742,985,202122,958,0001,007,0002,531,328
4Dec 12, 2024 18:404,275751,246,504122,978,0001,008,0002,531,328
5Dec 12, 2024 18:404,276749,152,794122,013,0002,000,0002,531,328
6Dec 12, 2024 18:414,279747,346,353124,085,00002,453,504
7Dec 12, 2024 18:404,279746,498,250123,105,0001,000,0002,531,328
8Dec 12, 2024 18:414,280743,057,119124,116,00002,531,328
9Dec 12, 2024 18:414,280750,112,849124,106,00002,457,600
10Dec 12, 2024 18:404,280747,601,773124,115,00002,269,184
11Dec 12, 2024 18:434,281742,152,365124,144,00002,269,184
12Dec 12, 2024 18:414,282744,997,383124,173,00002,269,184
13Dec 12, 2024 18:404,282745,801,624124,169,00002,531,328
14Dec 12, 2024 18:414,282744,566,322124,167,00002,531,328
15Dec 12, 2024 18:414,284745,216,013124,234,00002,531,328
16Dec 12, 2024 18:404,284749,392,406123,232,0001,001,0002,531,328
17Dec 12, 2024 18:434,286741,799,788124,291,00002,531,328
18Dec 12, 2024 18:414,288746,071,119124,365,00002,281,472
19Dec 12, 2024 18:434,288750,451,971124,350,00002,531,328
20Dec 12, 2024 18:414,291750,443,915123,441,0001,003,0002,449,408
21Dec 12, 2024 18:404,294754,431,354123,533,0001,004,0002,531,328
22Sep 10, 2024 23:025,299945,051,442130,361,00023,316,00033,591,296
23Sep 10, 2024 23:025,310962,429,403127,972,00026,010,00033,910,784
24Sep 10, 2024 23:035,311943,108,822125,449,00028,557,00033,820,672
25Sep 10, 2024 23:025,346966,483,609126,278,00028,746,00034,246,656
26Sep 10, 2024 23:035,349968,902,363127,197,00027,921,00033,513,472
27Sep 10, 2024 23:035,354958,696,206126,480,00028,792,00033,853,440