Advertisement
Robur_131

Untitled

Feb 8th, 2016
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. #include<stdio.h>
  2.  
  3. int main()
  4.  
  5. {
  6. int T,i,k,j;
  7. scanf("%d",&T);
  8.  
  9. for(i=1;i<=T;i++)
  10.  
  11. {
  12. int N;
  13. scanf("%d",&N);
  14. int ara[N];
  15.  
  16. for(k=0;k<N;k++)
  17. {
  18. scanf("%d",&ara[k]);
  19. }
  20.  
  21. for(j=1;j<N;j++)
  22. {
  23. if(ara[0]<ara[j])
  24. {
  25. ara[0]=ara[j];
  26. }
  27. }
  28. printf("Case %d: %d",i,ara[0]);
  29. }
  30.  
  31. return 0;
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement