标签:语言 include nbsp int href pid online ++ others
http://acm.nyist.net/JudgeOnline/problem.php?pid=31
c语言书上的题目
1 2 3 4 5
1 5
1 #include<stdio.h> 2 int main() 3 { 4 int a[5]; 5 int min=0; 6 int max=0; 7 for(int t=0;t<5;t++) 8 scanf("%d",&a[t]); 9 for(int t=1;t<5;t++) 10 { 11 if(a[max]<a[t])max=t; 12 if(a[min]>a[t])min=t; 13 } 14 printf("%d %d",a[min],a[max]); 15 }
标签:语言 include nbsp int href pid online ++ others
原文地址:http://www.cnblogs.com/pojdd/p/7676437.html