/*
#include <stdio.h>
int main()
{
int a, b, c;
scanf("%d %d %d", &a, &b, &c);
if(c<a+b)
{
if(a==b && b==c &&a==c) //1
{
printf("정삼각형");
}
else if(a==b || a==c || b==c)//2
{
printf("이등변삼각형");
}
else if(a*a + b*b == c*c)//3
{
printf("직각삼각형");
}
else
{
printf("삼각형");
}
}
else
{
printf("삼각형아님");
}
return 0;
}
a/b -> a를 b로 나눈 정수 몫
(float) a / b -> a를 b로 나눈 실수 몫
*/
/*
#include <stdio.h>
int main()
{
int a, b, c, d;
scanf("%d %d %d %d", &a, &b, &c, &d);
if((float)a/b > (float)c/d)
{
printf(">");
}
else if((float)a/b == (float)c/d)
{
printf("=");
}
else
{
printf("<");
}
return 0;
}
*/
// char 문자 ******* int 숫자 *******
//float 실수 컴퓨터에서 사용되는 수 중에서 소수점이 붙어 있는 형태의 수.(분수)
//a!=b && b!=c &&a!=c || a!=b || a!=c || b!=c || a*a + b*b != c*c
/*
#include <stdio.h>
int main()
{
int a, b, c, d;
scanf("%d %d %d %d", &a, &b, &c, &d);
if((float)a/b > (float)c/d)
{
printf(">");
}
else if((float)a/b == (float)c/d)
{
printf("=");
}
else if(a==0 && b==0 && c==0 && d==0)
{
printf("어느 쪽도 크거나 똑같거나 작지 않음");
}
else
{
printf("<");
}
return 0;
}
*/
/*
#include <stdio.h>
int main()
{
int a, b, c;
scanf("%d %d %d", &a, &b, &c);
if((a + b + c) / 10 % 100 /10 %2 == 0)
// 1502
{
printf("대박");
}
else
{
printf("그럭저럭");
}
return 0;
}
/*
#include <stdio.h>
int main()
{
int a, b, c;
scanf("%d %d %d", &a ,&b ,&c);
printf("%d", (a + b + c) % 10 % 100 /10);
return 0;
}
*/
/*
음..... 100의 자리만 나누는 방법이 있나?
나머지 나루기 랑 걍 나누기 잘 쓰기
12345 % 100 = 45
45 / 10=4
1632 -> 6
1632 % 100 = 16 %10 =6
16 나누기 10 =6
*/
/*
#include <stdio.h>
int main()
{
int a, b, c;
scanf("%d %d %d", &a, &b, &c);
if((a + b + c) / 10 % 100 /10 %2 == 0)
{
printf("대박");
}
else
{
printf("그럭저럭");
}
return 0;
}
*/
/*
#include <stdio.h>
int main()
{
int a, b;
scanf("%d %d", &a, &b);
printf("%d", a-b);
return 0;
}
*/
//빠 1971 마 1976
//조건문
//1. if-else 90%
//2. switch-case 10%
//case ~일 경우
/*
#include <stdio.h>
int main()
{
int a;
scanf("%d",&a);
// if(a==10 || a==15 || a==17)
// {
// printf("추워요");
// }
// else if(a==20 || a==33)
// {
// printf("따뜻해요");
// }
// else
// {
// printf("잘모르겠어요");
// }
switch(a)
{
case 10 :
case 15 :
case 17 : printf("추워요"); break;
case 20 :
case 33 : printf("따뜻해요"); break;
default : printf("잘모르겠어요"); break;
}
return 0;
}
*/
/*
#include <stdio.h>
int main()
{
char a;
scanf("%c", &a);
switch(a)
{
case 'A' : printf("best!!!");break;
case 'B' : printf("good!!");break;
case 'C' : printf("run!");break;
case 'D' : printf("slowly~");break;
default : printf("what?");break;
}
return 0;
}
*/
/*
#include <stdio.h>
int main()
{
int a;
scanf("%d", &a);
switch(a)
{
case 12:
case 1:
case 2:printf("winter");break;
case 3:
case 4:
case 5: printf("spring");break;
case 6:
case 7:
case 8:printf("summer");break;
case 9:
case 10:
case 11:printf("fall");break;
}
return 0;
}
*/
//우와..........겁나 길다.............
/*
#include <stdio.h>
int main()
{
int a, b, c, d;
scanf("%d %d %d %d", &a, &b, &c, &d);
switch(a+b+c+d)
{
case 1: printf("도");break;
case 2:printf("개");break;
case 3:printf("걸");break;
case 4:printf("윷");break;
case 0:printf("모");break;
}
return 0;
}
*/
/*
#include <stdio.h>
int main()
{
int a, c;
char b;
scanf("%d %c %d", &a, &b, &c);
switch(b)
{
case '+': printf("%d", a+c);break;
case '-': printf("%d", a-c);break;
case '*': printf("%d", a*c);break;
case '/':printf("%.2f", (float)a/c);break;
}
return 0;
}
*/
//나눗셈일 경우 실수로 출력하되 소수 둘째자리까지 출력한다.
//(float)a/b > (float)c/d
///소수점 2째 자리 까지 출력 %.2f 아님 말고........ 미안..........
///-1073741824
#include <stdio.h>
int main()
{
int a;
scanf("%d", &a);
switch(a/10)
{
case 9:
case 10: printf("A");break;
case 7:
case 8: printf("B");break;
case 4:
case 5:
case 6: printf("C");break;
case 3:
case 2:
case 1:
case 0:printf("D");break;
}
return 0;
}
// && 그리고 || 이거나 ! 아니다 확실 히 기어가혹 있는 데
//a가 90점대
/*
<나의 열정>
case 100:
case 99:
case 98:
case 97:
case 96:
case 95:
case 94:
case 93:
case 92:
case 91:
case 90:printf("A");break;
case 89:
case 88:
case 87:
case 86:
case 85:
case 84:
case 83:
case 82:
case 81:
case 70:printf("B");break;
*/
348