1.杭电ACM2016 presentation Error
杭电ACM2016 presentation Error
AC源代码
# include <stdio.h>
int a[] ;
int main ()
{
int i,网网站漫画app源码推荐 n, pos ;
while (~scanf ("%d", &n) && n)
{
for (i = 0 ; i < n ;i++)
scanf ("%d", a+i) ;
for (i = 1, pos = 0 ; i < n ; i++)
if (a[i]<a[pos]) pos = i ;
if (pos != 0)
a[0] ^= a[pos] ^= a[0] ^= a[pos] ;
for (i = 0 ; i < n ;i ++)
{
if (i == 0) printf ("%d", a[i]) ;
else printf (" %d", a[i]) ;
}
puts ("") ;
}
return 0 ;
}
2024-11-30 07:21
2024-11-30 06:43
2024-11-30 06:33
2024-11-30 06:29
2024-11-30 06:10
2024-11-30 05:38
2024-11-30 05:30
2024-11-30 04:50