結果

問題 No.296 n度寝
ユーザー yosupotyosupot
提出日時 2015-11-06 23:15:49
言語 D
(dmd 2.106.1)
結果
WA  
実行時間 -
コード長 372 bytes
コンパイル時間 1,633 ms
コンパイル使用メモリ 159,700 KB
実行使用メモリ 4,496 KB
最終ジャッジ日時 2023-09-02 20:23:27
合計ジャッジ時間 3,302 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 2 ms
4,372 KB
testcase_04 AC 1 ms
4,368 KB
testcase_05 AC 1 ms
4,368 KB
testcase_06 AC 1 ms
4,368 KB
testcase_07 AC 1 ms
4,368 KB
testcase_08 WA -
testcase_09 AC 1 ms
4,372 KB
testcase_10 AC 2 ms
4,372 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 2 ms
4,372 KB
testcase_14 WA -
testcase_15 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import std.stdio, std.conv;
import std.algorithm, std.range, std.random;
import std.string, std.array, std.container, std.bigint;
import std.typecons, std.ascii;
import std.datetime;


int main() {
	long n; int h, m, t;
	readf("%d %d %d %d\n", &n, &h, &m, &t);
	auto st = TimeOfDay(h, m);
	st.roll!"minutes"((n-1) * t);
	writeln(st.hour);
	writeln(st.minute);
	return 0;
}
0