結果

問題 No.525 二度寝の季節
ユーザー lumin
提出日時 2017-10-23 04:46:22
言語 D
(dmd 2.109.1)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 245 bytes
コンパイル時間 1,798 ms
コンパイル使用メモリ 145,112 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-12 22:04:17
合計ジャッジ時間 2,684 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 33
権限があれば一括ダウンロードができます

ソースコード

diff #

import std.stdio, std.array, std.conv, std.string, std.algorithm;

void main(){
    auto t = readln.chomp.split(':').map!(to!int).array;

    int result = (t[0]*60 + t[1] + 5) % (24 * 60);
    writefln("%02d:%02d", result/60,result%60);
}
0