top of page

소스 코드 제출

공개·회원 52명

20250712 2061번부터

#include<stdio.h>

int main()

{

int t,x,m,c,w,sum=0;

float a;

char h;

scanf("%c\n",&h);

scanf("%d\n",&t);

scanf("%d\n",&x);

scanf("%d %d\n",&m,&c);

scanf("%d",&w);

if(h=='A')

{

sum=10;

}

else if(h=='S')

{

sum=2;

}

else if(h=='O')

{

sum=1;

}

a=(float)x*sum/w+(float)h;

printf("%f",a);

if(a*c<m)

{

printf("Yes");

}

else

{

printf("No");

}

return 0;

}

2회 조회
주소 : 경기도 용인시 광교중앙로 302 블루 스퀘어 602호
연락처 : 031) 216 - 1546 ,     031) 215 - 1546
사업자등록번호 : 465-92-00916
​학원 등록 제 4603호
bottom of page