#include using namespace std; unsigned int ips[1005]; int m; unsigned int base=0xffffffffu; bool check(int n) { for(int i=1;i>24)<<"."<<((ip>>16)&0xffu)<<"."<<((ip>>8)&0xffu)<<"."<<(ip&0xffu)<>t1>>t>>t2>>t>>t3>>t>>t4; ips[i]=(t1<<24)|(t2<<16)|(t3<<8)|t4; // cout<<'\t'<>m) solve(); return 0; }