标签:turn class ble name lin ati std src length
1 #include<iostream> 2 #include<cstdio> 3 #include<string> 4 using namespace std; 5 int main() 6 { 7 string a,b; 8 while(cin>>a) 9 { 10 if(a[0]==‘-‘)break; 11 cin>>b; 12 int a1= a[a.length()-1]-‘0‘; 13 int b1= b[b.length()-1]-‘0‘; 14 if((a1%5==2||a1%5==3)&&(b1%5==2||b1%5==3)) 15 printf("SheepDaddy\n"); 16 else 17 printf("MengMeng\n"); 18 } 19 return 0; 20 }
1 #include<iostream> 2 #include<cstdio> 3 #include<string> 4 using namespace std; 5 int main() 6 { 7 string a,b; 8 while(cin>>a>>b) 9 { 10 int a1= a[a.length()-1]-‘0‘; 11 int b1= b[b.length()-1]-‘0‘; 12 if((a1%5==2||a1%5==3)&&(b1%5==2||b1%5==3)) 13 printf("Shadow\n"); 14 else 15 printf("Matrix67\n"); 16 } 17 return 0; 18 }
标签:turn class ble name lin ati std src length
原文地址:http://www.cnblogs.com/A--Q/p/6805662.html