// a 790101
// a/10000 79
/*
#include <stdio.h>
int main()
{
int a,b;
scanf("%d %d",&a,&b);
a=a/10000;
if(b==1||b==2)
{
printf("%d",2012-(a+1900)+1);
}
else if(b==3||b==4)
{
printf("%d",2012-(a+2000)+1);
}
return 0;
}
조건문
if, else
switch, case
#include <stdio.h>
int main()
{
int a;
scanf("%d",&a);
if(a==10 || a==15||a==18)
{
printf("small");
}
else if(a==19||a==20)
{
printf("medium");
}
else
{
printf("big");
}
switch(a)
{
case 10 :
case 15 :
case 18 : printf("small"); break;
case 19 :
case 20 : printf("medium"); break;
default : printf("big"); break;
}
}
-*/
/*
#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;
scanf("%d",&a);
switch(a/10)
{
case 10:
case 9 :printf("A");break;
case 8 :printf("B");break;
case 7 :printf("C");break;
case 6 :printf("D");break;
default:printf("F");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 0 :printf("모"); break;
case 1 :printf("도"); break;
case 2 :printf("개"); break;
case 3 :printf("걸"); break;
case 4 :printf("윷"); break;
}
return 0;
}