코드 ¶
~cpp #include <conio.h> #include <iostream> #include <ctime> using namespace std; int main() { time_t start = time(0); while (!kbhit()) ; time_t gap = time(0) - start; if (gap == 8) cout << "you win!!!\n"; else cout << "your time is off.\n"; return 0; }