結果

問題 No.296 n度寝
ユーザー phsplsphspls
提出日時 2020-03-28 10:52:24
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 59 ms / 1,000 ms
コード長 456 bytes
コンパイル時間 4,220 ms
コンパイル使用メモリ 103,084 KB
実行使用メモリ 25,892 KB
最終ジャッジ日時 2023-08-30 17:29:57
合計ジャッジ時間 3,926 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 57 ms
21,848 KB
testcase_01 AC 57 ms
21,792 KB
testcase_02 AC 58 ms
23,912 KB
testcase_03 AC 57 ms
21,924 KB
testcase_04 AC 58 ms
23,824 KB
testcase_05 AC 58 ms
25,892 KB
testcase_06 AC 57 ms
21,964 KB
testcase_07 AC 58 ms
21,792 KB
testcase_08 AC 58 ms
19,740 KB
testcase_09 AC 59 ms
23,904 KB
testcase_10 AC 58 ms
23,772 KB
testcase_11 AC 59 ms
21,980 KB
testcase_12 AC 57 ms
21,728 KB
testcase_13 AC 57 ms
23,844 KB
testcase_14 AC 57 ms
21,788 KB
testcase_15 AC 59 ms
21,840 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.Linq;

public class P0296 {
    public static void Main() {
        var nhmt = Console.ReadLine().Trim().Split(' ').Select(int.Parse).ToList();
        const int oneday = 1440;
        var n = (nhmt[0] - 1) % oneday;
        var h = nhmt[1];
        var m = nhmt[2];
        var t = nhmt[3];
        var result = (n * t + h*60 + m) % oneday;
        Console.WriteLine(result / 60);
        Console.WriteLine(result % 60);
    }
}
0