//Dennis #include #include #include #include #include #include #include using namespace std; #define FOR(i,n) for (int i=0;i=b;i--) #define all(v) v.begin() v.end() int main() { //generate forward map forward; int i=0; stringstream str; str.fill('0'); FORN(hh,0,23) FORN(mm,0,59) FORN(ss,0,59) { str.str(""); str< backwards; i=1; FORD(hh,23,0) FORD(mm,59,0) FORD(ss,59,0) { str.str(""); if(hh<10) str<<" "; str<>input && input.compare("0:00:00")) if (forward[input]) cout<