11799 - Horror Dash
Problem Link: Click Here!
Solution:
#include<stdio.h>
int main(void){
int i,t,m,v=0;
char ch;
i=1;
scanf("%d",&t);
scanf("%d",&t);
while(i<=t){
ch='a';
v=0;
while(ch !='\n'){
scanf("%d",&m);
scanf("%c",&ch);
if(m>v)v=m;
}
printf("Case %d: %d\n",i,v);
i++;
}
return 0;
}
No comments:
Post a Comment