結果
| 問題 | No.525 二度寝の季節 |
| コンテスト | |
| ユーザー |
norioc
|
| 提出日時 | 2017-08-19 09:19:09 |
| 言語 | D (dmd 2.109.1) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 447 bytes |
| 記録 | |
| コンパイル時間 | 1,707 ms |
| コンパイル使用メモリ | 148,088 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-06-12 21:41:25 |
| 合計ジャッジ時間 | 2,873 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 33 |
ソースコード
import std.algorithm;
import std.array;
import std.conv;
import std.math;
import std.range;
import std.stdio;
import std.string;
import std.typecons;
int readint() {
return readln.chomp.to!int;
}
int[] readints() {
return readln.split.map!(to!int).array;
}
void main() {
auto xs = readln.chomp.split(':').map!(to!int).array;
int x = xs[0] * 60 + xs[1];
x = (x + 5) % (24 * 60);
writefln("%02d:%02d", x / 60, x % 60);
}
norioc