@echo off & setlocal enabledelayedexpansion
echo ^@echo off ^& color 4e ^& mode con cols=15 lines=3 ^& title 喂...... >"%tmp%\clock.bat"
echo ^:000>>"%tmp%\clock.bat"
echo echo. ^& echo ^& echo 時間到 ^& ping 127.0.0.1 -n 2 ^>^>nul ^& goto 000 >>"%tmp%\clock.bat"
mode con cols=42 lines=13
set alarm=%1
title 正在讀取. . .
set verson= 1.0 beta
echo.
echo ╔═════════════════╗
echo ║大字時鐘 %verson%║
echo ╠═════════════════╣
echo ║┌┈┐ ┌┈┐ ┌┈┐ ┌┈┐║
echo ║┊ ┊ ┊ ┊ ▓ ┊ ┊ ┊ ┊║
echo ║├┈┤ ├┈┤ 00 ├┈┤ ├┈┤║
echo ║┊ ┊ ┊ ┊ ▓ ┊ ┊ ┊ ┊║
echo ║└┈┘ └┈┘ └┈┘ └┈┘║
echo ╠═════════════════╣
if '%alarm%' == '' echo ║鬧鐘功能 已經關閉║
if not '%alarm%' == '' echo ║鬧鐘功能 %alarm%║
echo ╚═════════════════╝
:for
color 3e
for /l %%a in (0,1,3) do call :cs %%a
goto show
:cs
for /f "tokens=1,2,3 delims=:." %%b in ('echo %time%') do set times=%%b%%c%%d >>nul
for /f "tokens=1,2,3,4 delims=-/ " %%e in ('echo %date%') do set datesh=%%e 年 %%f 月 %%g 日 %%h & set dates=%%e%%f%%g>>nul
for /f "tokens=1,2 delims=:." %%i in ('echo %alarm%') do set alarms=%%i%%j00 >>nul
if "%times%" == "%alarms%" call :alarm %1
call :num%%times:~^%1,1%% %1
goto :eof
:num1
set 1_%1=┌┈▓
set 2_%1=┊ ▓
set 3_%1=├┈▓
set 4_%1=┊ ▓
set 5_%1=└┈▓
goto :eof
:num2
set 1_%1=▓▓▓
set 2_%1=┊ ▓
set 3_%1=▓▓▓
set 4_%1=▓ ┊
set 5_%1=▓▓▓
goto :eof
:num3
set 1_%1=▓▓▓
set 2_%1=┊ ▓
set 3_%1=▓▓▓
set 4_%1=┊ ▓
set 5_%1=▓▓▓
goto :eof
:num4
set 1_%1=▓┈▓
set 2_%1=▓ ▓
set 3_%1=▓▓▓
set 4_%1=┊ ▓
set 5_%1=└┈▓
goto :eof
:num5
set 1_%1=▓▓▓
set 2_%1=▓ ┊
set 3_%1=▓▓▓
set 4_%1=┊ ▓
set 5_%1=▓▓▓
goto :eof
:num6
set 1_%1=▓▓▓
set 2_%1=▓ ┊
set 3_%1=▓▓▓
set 4_%1=▓ ▓
set 5_%1=▓▓▓
goto :eof
:num7
set 1_%1=▓▓▓
set 2_%1=┊ ▓
set 3_%1=├┈▓
set 4_%1=┊ ▓
set 5_%1=└┈▓
goto :eof
:num8
set 1_%1=▓▓▓
set 2_%1=▓ ▓
set 3_%1=▓▓▓
set 4_%1=▓ ▓
set 5_%1=▓▓▓
goto :eof
:num9
set 1_%1=▓▓▓
set 2_%1=▓ ▓
set 3_%1=▓▓▓
set 4_%1=┊ ▓
set 5_%1=▓▓▓
goto :eof
:num0
set 1_%1=▓▓▓
set 2_%1=▓ ▓
set 3_%1=▓┈▓
set 4_%1=▓ ▓
set 5_%1=▓▓▓
goto :eof
:show
ping 127.0.0.1 -n 2 >>nul
cls
title %datesh%
echo.
echo ╔═════════════════╗
echo ║大字時鐘 %verson%║
echo ╠═════════════════╣
echo ║!1_0! !1_1! !1_2! !1_3!║
echo ║!2_0! !2_1! ▓ !2_2! !2_3!║
echo ║!3_0! !3_1! %time:~6,2% !3_2! !3_3!║
echo ║!4_0! !4_1! ▓ !4_2! !4_3!║
echo ║!5_0! !5_1! !5_2! !5_3!║
echo ╠═════════════════╣
if '%alarm%' == '' echo ║鬧鐘功能 已經關閉║
if not '%alarm%' == '' echo ║鬧鐘功能 %alarm%║
echo ╚═════════════════╝
goto for
:alarm
if not '%1' == '0' goto :eof
start %tmp%\clock.bat
set alarm=
goto :eof
牛牛的鬧鐘
牛牛總是睡過頭,所以他定了很多鬧鐘,只有在鬧鐘響的時候他才會醒過來並且決定起不起床。從他起床算起他需要x分鐘到達教室,上課時間為當天的a時b分,請問他最晚可以什麼時間起床 輸入描述 每個輸入包含乙個測試用例。每個測試用例的第一行包含乙個正整數,表示鬧鐘的數量n n 100 接下來的n行每行包含兩個整...
牛牛的鬧鐘
牛牛總是睡過頭,所以他定了很多鬧鐘,只有在鬧鐘響的時候他才會醒過來並且決定起不起床。從他起床算起他需要x分鐘到達教室,上課時間為當天的a時b分,請問他最晚可以什麼時間起床 輸入描述 每個輸入包含乙個測試用例。每個測試用例的第一行包含乙個正整數,表示鬧鐘的數量n n 100 接下來的n行每行包含兩個整...
牛牛的鬧鐘
牛牛總是睡過頭,所以他定了很多鬧鐘,只有在鬧鐘響的時候他才會醒過來並且決定起不起床。從他起床算起他需要x分鐘到達教室,上課時間為當天的a時b分,請問他最晚可以什麼時間起床 輸入描述 每個輸入包含乙個測試用例。每個測試用例的第一行包含乙個正整數,表示鬧鐘的數量n n 100 接下來的n行每行包含兩個整...