結果
問題 | No.525 二度寝の季節 |
ユーザー |
|
提出日時 | 2018-01-26 15:18:31 |
言語 | D (dmd 2.109.1) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 593 bytes |
コンパイル時間 | 1,843 ms |
コンパイル使用メモリ | 139,096 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-06-12 23:38:58 |
合計ジャッジ時間 | 2,715 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 33 |
ソースコード
import std.algorithm, std.conv, std.range, std.stdio, std.string; void readV(T...)(ref T t){auto r=readln.splitter;foreach(ref v;t){v=r.front.to!(typeof(v));r.popFront;}} T[] readArray(T)(size_t n){auto a=new T[](n),r=readln.splitter;foreach(ref v;a){v=r.front.to!T;r.popFront;}return a;} T[] readArrayM(T)(size_t n){auto a=new T[](n);foreach(ref v;a)v=readln.chomp.to!T;return a;} void main() { auto t = readln.chomp; auto h = t[0..2].to!int, m = t[3..5].to!int; m += 5; if (m >= 60) { m -= 60; h += 1; } if (h >= 24) { h -= 24; } writefln("%02d:%02d", h, m); }