結果

問題 No.296 n度寝
ユーザー iwkjoseciwkjosec
提出日時 2018-06-29 14:21:13
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 61 ms / 1,000 ms
コード長 444 bytes
コンパイル時間 2,079 ms
コンパイル使用メモリ 104,348 KB
実行使用メモリ 23,900 KB
最終ジャッジ日時 2023-09-13 15:10:02
合計ジャッジ時間 3,891 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 60 ms
23,888 KB
testcase_01 AC 60 ms
23,892 KB
testcase_02 AC 60 ms
21,864 KB
testcase_03 AC 60 ms
23,900 KB
testcase_04 AC 59 ms
21,828 KB
testcase_05 AC 59 ms
21,948 KB
testcase_06 AC 60 ms
21,756 KB
testcase_07 AC 60 ms
23,760 KB
testcase_08 AC 59 ms
21,772 KB
testcase_09 AC 60 ms
21,620 KB
testcase_10 AC 59 ms
23,796 KB
testcase_11 AC 60 ms
21,712 KB
testcase_12 AC 60 ms
21,848 KB
testcase_13 AC 60 ms
21,904 KB
testcase_14 AC 60 ms
23,708 KB
testcase_15 AC 61 ms
23,880 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;

class Program
{
    static void Main()
    {
        var NHMT = ReadLine().Split().Select(int.Parse).ToArray();
        var N = NHMT[0];
        var H = NHMT[1];
        var M = NHMT[2];
        var T = NHMT[3];
        var d = new DateTime(1, 1, 1, H, M, 0).AddMinutes(T * (N - 1));
        WriteLine(d.Hour);
        WriteLine(d.Minute);
    }
}
0