fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4.  
  5. int a[10],b,g1=0,g2=0,g3=0,b1=0,b2=0,b3=0;
  6.  
  7. for(b=0; b<10; b++){
  8. scanf("%d",&a[b]);}
  9. for(b=0; b<10; b++)
  10. if(g1<a[b]){
  11. g1=a[b];
  12. b1=b;}
  13. printf("%d人目 %d点",b1+1,g1);
  14.  
  15.  
  16. return 0;
  17. }
  18.  
Success #stdin #stdout 0s 5324KB
stdin
98 39 42 76 35 48 81 41 74 55
stdout
1人目 98点