#include <iostream> #include <stdio.h> using namespace std;
int main(){ int y; cin>>y; y=y%12; switch (y){ case 4:{cout<<"Mouse"; break;} case 5:{cout<<"Bull";break;} case 6:{cout<<"Tiger";break;} case 7:{cout<<"Rabbit";break;} case 8:{cout<<"Dragon";break;} case 9:{cout<<"Snake";break;} case 10:{cout<<"Horse";break;} case 11:{cout<<"Goat";break;} case 0:{cout<<"Monkey";break;} case 1:{cout<<"Cock";break;} case 2:{cout<<"Dog";break;} case 3:{cout<<"Pig";break;} } cin.get(); cin.get(); return 0; }
#include <iostream>
#include <cmath>
using namespace std;
int main(void)
{int ax,bx,abx,ay,by,aby,az,bz,abz;
float v,amod,bmod,abmod;
cin>>ax>>ay>>az>>bx>>by>>bz;
abx=ay*bz-by*az;
aby=az*bx-ax*bz;
abz=ax*by-ay*bx;
amod=sqrt(pow(ax,2)+pow(ay,2)+pow(az,2));
bmod=sqrt(pow(bx,2)+pow(by,2)+pow(bz,2));
abmod=sqrt(pow(abx,2)+pow(aby,2)+pow(abz,2));
v=abs(ax*(by*abz-aby*bz)-ay*(bx-abz-abx*bz)+az*(bx*aby-abx*by));
cout<<"V="<<v<<endl;
if(v==0)
cout<<"YES";
else
cout<<"NO";
return 0;}
#include <stdio.h>
using namespace std;
int main(){
int y;
cin>>y;
y=y%12;
switch (y){
case 4:{cout<<"Mouse"; break;}
case 5:{cout<<"Bull";break;}
case 6:{cout<<"Tiger";break;}
case 7:{cout<<"Rabbit";break;}
case 8:{cout<<"Dragon";break;}
case 9:{cout<<"Snake";break;}
case 10:{cout<<"Horse";break;}
case 11:{cout<<"Goat";break;}
case 0:{cout<<"Monkey";break;}
case 1:{cout<<"Cock";break;}
case 2:{cout<<"Dog";break;}
case 3:{cout<<"Pig";break;}
}
cin.get();
cin.get();
return 0;
}