#include main() { FILE *file=fopen("fuses.in","r"); int n,m,c,seq=1,t,amp[100],device,on[100],strom,max; while(1) { for(t=0;t<100;t++) on[t]=0; fscanf(file,"%d %d %d\n",&n,&m,&c); if(n==0 && m==0 && c==0) return 0; for(t=1;t<=n;t++) fscanf(file,"%d\n",&[t]); strom=0; max=0; for(t=0;tmax) max=strom; } printf("Sequence %d\n",seq++); if(max>c) printf("Fuse was blown.\n"); else printf("Fuse was not blown.\nMaximal power consumption was %d amperes.\n",max); printf("\n"); } }