00001 00002 #include <iostream> 00003 00004 00005 int main() { 00006 00007 for(unsigned u(0); u < 168; ++u) { 00008 unsigned region, group, psGroup; 00009 region = static_cast<unsigned>(u/42); 00010 group = static_cast<unsigned>((u % 42) / 6); 00011 psGroup = region * 7 + group; 00012 std::cout << u << "\t" << region << "\t" << group << "\t" << psGroup << "\n"; 00013 } 00014 00015 }