0_0_25060797_22343.c:1:1: error: expected identifier or '(' before '/' token
//首先找出序列中所有的置换,然后对于每个置换有两种方法将其调成合法。
^
0_0_25060797_22343.c:1:1: error: stray '\312' in program
0_0_25060797_22343.c:1:1: error: stray '\327' in program
0_0_25060797_22343.c:1:1: error: stray '\317' in program
0_0_25060797_22343.c:1:1: error: stray '\310' in program
0_0_25060797_22343.c:1:1: error: stray '\325' in program
0_0_25060797_22343.c:1:1: error: stray '\322' in program
0_0_25060797_22343.c:1:1: error: stray '\263' in program
0_0_25060797_22343.c:1:1: error: stray '\366' in program
0_0_25060797_22343.c:1:1: error: stray '\320' in program
0_0_25060797_22343.c:1:1: error: stray '\362' in program
0_0_25060797_22343.c:1:1: error: stray '\301' in program
0_0_25060797_22343.c:1:1: error: stray '\320' in program
0_0_25060797_22343.c:1:1: error: stray '\326' in program
0_0_25060797_22343.c:1:1: error: stray '\320' in program
0_0_25060797_22343.c:1:1: error: stray '\313' in program
0_0_25060797_22343.c:1:1: error: stray '\371' in program
0_0_25060797_22343.c:1:1: error: stray '\323' in program
0_0_25060797_22343.c:1:1: error: stray '\320' in program
0_0_25060797_22343.c:1:1: error: stray '\265' in program
0_0_25060797_22343.c:1:1: error: stray '\304' in program
0_0_25060797_22343.c:1:1: error: stray '\326' in program
0_0_25060797_22343.c:1:1: error: stray '\303' in program
0_0_25060797_22343.c:1:1: error: stray '\273' in program
0_0_25060797_22343.c:1:1: error: stray '\273' in program
0_0_25060797_22343.c:1:1: error: stray '\243' in program
0_0_25060797_22343.c:1:1: error: stray '\254' in program
0_0_25060797_22343.c:1:1: error: stray '\310' in program
0_0_25060797_22343.c:1:1: error: stray '\273' in program
0_0_25060797_22343.c:1:1: error: stray '\272' in program
0_0_25060797_22343.c:1:1: error: stray '\363' in program
0_0_25060797_22343.c:1:1: error: stray '\266' in program
0_0_25060797_22343.c:1:1: error: stray '\324' in program
0_0_25060797_22343.c:1:1: error: stray '\323' in program
0_0_25060797_22343.c:1:1: error: stray '\332' in program
0_0_25060797_22343.c:1:1: error: stray '\303' in program
0_0_25060797_22343.c:1:1: error: stray '\277' in program
0_0_25060797_22343.c:1:1: error: stray '\270' in program
0_0_25060797_22343.c:1:1: error: stray '\366' in program
0_0_25060797_22343.c:1:1: error: stray '\326' in program
0_0_25060797_22343.c:1:1: error: stray '\303' in program
0_0_25060797_22343.c:1:1: error: stray '\273' in program
0_0_25060797_22343.c:1:1: error: stray '\273' in program
0_0_25060797_22343.c:1:1: error: stray '\323' in program
0_0_25060797_22343.c:1:1: error: stray '\320' in program
0_0_25060797_22343.c:1:1: error: stray '\301' in program
0_0_25060797_22343.c:1:1: error: stray '\275' in program
0_0_25060797_22343.c:1:1: error: stray '\326' in program
0_0_25060797_22343.c:1:1: error: stray '\326' in program
0_0_25060797_22343.c:1:1: error: stray '\267' in program
0_0_25060797_22343.c:1:1: error: stray '\275' in program
0_0_25060797_22343.c:1:1: error: stray '\267' in program
0_0_25060797_22343.c:1:1: error: stray '\250' in program
0_0_25060797_22343.c:1:1: error: stray '\275' in program
0_0_25060797_22343.c:1:1: error: stray '\253' in program
0_0_25060797_22343.c:1:1: error: stray '\306' in program
0_0_25060797_22343.c:1:1: error: stray '\344' in program
0_0_25060797_22343.c:1:1: error: stray '\265' in program
0_0_25060797_22343.c:1:1: error: stray '\367' in program
0_0_25060797_22343.c:1:1: error: stray '\263' in program
0_0_25060797_22343.c:1:1: error: stray '\311' in program
0_0_25060797_22343.c:1:1: error: stray '\272' in program
0_0_25060797_22343.c:1:1: error: stray '\317' in program
0_0_25060797_22343.c:1:1: error: stray '\267' in program
0_0_25060797_22343.c:1:1: error: stray '\250' in program
0_0_25060797_22343.c:1:1: error: stray '\241' in program
0_0_25060797_22343.c:1:1: error: stray '\243' in program
0_0_25060797_22343.c:2:1: error: stray '\303' in program
//1.每次用置换中最小的数去和其他数换,ans=sum+min*(num-2)。
^
0_0_25060797_22343.c:2:1: error: stray '\277' in program
0_0_25060797_22343.c:2:1: error: stray '\264' in program
0_0_25060797_22343.c:2:1: error: stray '\316' in program
0_0_25060797_22343.c:2:1: error: stray '\323' in program
0_0_25060797_22343.c:2:1: error: stray '\303' in program
0_0_25060797_22343.c:2:1: error: stray '\326' in program
0_0_25060797_22343.c:2:1: error: stray '\303' in program
0_0_25060797_22343.c:2:1: error: stray '\273' in program
0_0_25060797_22343.c:2:1: error: stray '\273' in program
0_0_25060797_22343.c:2:1: error: stray '\326' in program
0_0_25060797_22343.c:2:1: error: stray '\320' in program
0_0_25060797_22343.c:2:1: error: stray '\327' in program
0_0_25060797_22343.c:2:1: error: stray '\356' in program
0_0_25060797_22343.c:2:1: error: stray '\320' in program
0_0_25060797_22343.c:2:1: error: stray '\241' in program
0_0_25060797_22343.c:2:1: error: stray '\265' in program
0_0_25060797_22343.c:2:1: error: stray '\304' in program
0_0_25060797_22343.c:2:1: error: stray '\312' in program
0_0_25060797_22343.c:2:1: error: stray '\375' in program
0_0_25060797_22343.c:2:1: error: stray '\310' in program
0_0_25060797_22343.c:2:1: error: stray '\245' in program
0_0_25060797_22343.c:2:1: error: stray '\272' in program
0_0_25060797_22343.c:2:1: error: stray '\315' in program
0_0_25060797_22343.c:2:1: error: stray '\306' in program
0_0_25060797_22343.c:2:1: error: stray '\344' in program
0_0_25060797_22343.c:2:1: error: stray '\313' in program
0_0_25060797_22343.c:2:1: error: stray '\373' in program
0_0_25060797_22343.c:2:1: error: stray '\312' in program
0_0_25060797_22343.c:2:1: error: stray '\375' in program
0_0_25060797_22343.c:2:1: error: stray '\273' in program
0_0_25060797_22343.c:2:1: error: stray '\273' in program
0_0_25060797_22343.c:2:1: error: stray '\243' in program
0_0_25060797_22343.c:2:1: error: stray '\254' in program
0_0_25060797_22343.c:2:1: error: stray '\243' in program
0_0_25060797_22343.c:2:1: error: stray '\251' in program
0_0_25060797_22343.c:2:1: error: stray '\241' in program
0_0_25060797_22343.c:2:1: error: stray '\243' in program
0_0_25060797_22343.c:3:1: error: stray '\323' in program
//2.用全局最小的元素换所有元素,最后还要把这个元素换出去,ans=sum+allmin*(num+1)。
^
0_0_25060797_22343.c:3:1: error: stray '\303' in program
0_0_25060797_22343.c:3:1: error: stray '\310' in program
0_0_25060797_22343.c:3:1: error: stray '\253' in program
0_0_25060797_22343.c:3:1: error: stray '\276' in program
0_0_25060797_22343.c:3:1: error: stray '\326' in program
0_0_25060797_22343.c:3:1: error: stray '\327' in program
0_0_25060797_22343.c:3:1: error: stray '\356' in program
0_0_25060797_22343.c:3:1: error: stray '\320' in program
0_0_25060797_22343.c:3:1: error: stray '\241' in program
0_0_25060797_22343.c:3:1: error: stray '\265' in program
0_0_25060797_22343.c:3:1: error: stray '\304' in program
0_0_25060797_22343.c:3:1: error: stray '\324' in program
0_0_25060797_22343.c:3:1: error: stray '\252' in program
0_0_25060797_22343.c:3:1: error: stray '\313' in program
0_0_25060797_22343.c:3:1: error: stray '\330' in program
0_0_25060797_22343.c:3:1: error: stray '\273' in program
0_0_25060797_22343.c:3:1: error: stray '\273' in program
0_0_25060797_22343.c:3:1: error: stray '\313' in program
0_0_25060797_22343.c:3:1: error: stray '\371' in program
0_0_25060797_22343.c:3:1: error: stray '\323' in program
0_0_25060797_22343.c:3:1: error: stray '\320' in program
0_0_25060797_22343.c:3:1: error: stray '\324' in program
0_0_25060797_22343.c:3:1: error: stray '\252' in program
0_0_25060797_22343.c:3:1: error: stray '\313' in program
0_0_25060797_22343.c:3:1: error: stray '\330' in program
0_0_25060797_22343.c:3:1: error: stray '\243' in program
0_0_25060797_22343.c:3:1: error: stray '\254' in program
0_0_25060797_22343.c:3:1: error: stray '\327' in program
0_0_25060797_22343.c:3:1: error: stray '\356' in program
0_0_25060797_22343.c:3:1: error: stray '\272' in program
0_0_25060797_22343.c:3:1: error: stray '\363' in program
0_0_25060797_22343.c:3:1: error: stray '\273' in program
0_0_25060797_22343.c:3:1: error: stray '\271' in program
0_0_25060797_22343.c:3:1: error: stray '\322' in program
0_0_25060797_22343.c:3:1: error: stray '\252' in program
0_0_25060797_22343.c:3:1: error: stray '\260' in program
0_0_25060797_22343.c:3:1: error: stray '\321' in program
0_0_25060797_22343.c:3:1: error: stray '\325' in program
0_0_25060797_22343.c:3:1: error: stray '\342' in program
0_0_25060797_22343.c:3:1: error: stray '\270' in program
0_0_25060797_22343.c:3:1: error: stray '\366' in program
0_0_25060797_22343.c:3:1: error: stray '\324' in program
0_0_25060797_22343.c:3:1: error: stray '\252' in program
0_0_25060797_22343.c:3:1: error: stray '\313' in program
0_0_25060797_22343.c:3:1: error: stray '\330' in program
0_0_25060
|