Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <math.h>
- #include <ctype.h>
- #include <string.h>
- int main(){
- int m, n, xor, d = 0, i;
- scanf("%d%d", &m, &n);
- xor= m ^ n;
- for(i = 0;i < 32;i++){
- if(xor &(1 << i)){
- d++;
- }
- }
- printf("%d\n", d);
- if(d == 1){
- puts("mandarin duck");
- }
- else if(d <= 4){
- puts("G00d friends!");
- }
- else if(d <= 12){
- puts("common friends");
- }
- else if(d <= 25){
- puts("broad communication");
- }
- else{
- puts("strangers");
- }
- //putchar('\n');
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement