#include #include #include #include #include int main(void) { int uetotal,sitatotal,wearday,uegara=0,uemuji=0,sitagara=0,sitamuji=0; scanf("%d %d",&uetotal,&sitatotal); char ue[10001]=""; char sita[10001]=""; scanf("%s",ue); scanf("%s",sita); for(int i=0;i=sitamuji) { wearday=sitamuji; } else { wearday=uemuji; } if(uegara>=sitagara) { wearday+=sitagara; } else { wearday+=uegara; } printf("%d",wearday); }