結果

問題 No.296 n度寝
ユーザー kokoa1046kokoa1046
提出日時 2017-09-08 19:03:18
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 57 ms / 1,000 ms
コード長 645 bytes
コンパイル時間 3,451 ms
コンパイル使用メモリ 102,560 KB
実行使用メモリ 22,896 KB
最終ジャッジ日時 2023-08-07 02:03:32
合計ジャッジ時間 3,987 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 57 ms
20,780 KB
testcase_01 AC 57 ms
22,776 KB
testcase_02 AC 57 ms
22,896 KB
testcase_03 AC 57 ms
20,776 KB
testcase_04 AC 57 ms
20,748 KB
testcase_05 AC 56 ms
18,704 KB
testcase_06 AC 56 ms
18,792 KB
testcase_07 AC 57 ms
20,724 KB
testcase_08 AC 56 ms
20,756 KB
testcase_09 AC 57 ms
20,700 KB
testcase_10 AC 57 ms
20,812 KB
testcase_11 AC 57 ms
20,768 KB
testcase_12 AC 57 ms
20,692 KB
testcase_13 AC 56 ms
20,752 KB
testcase_14 AC 57 ms
20,844 KB
testcase_15 AC 57 ms
20,732 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
public class Hello{
    public static void Main(){
        // Here your code !
        //int a;
         //a = int.Parse(Console.ReadLine()); //?¨??????\???
        var tmp = Console.ReadLine().Split();
        int n = int.Parse(tmp[0]);
        int h = int.Parse(tmp[1]);
        int m = int.Parse(tmp[2]);
        int t = int.Parse(tmp[3]);
        TimeSpan ts =  new TimeSpan(h, m, 0);
        
        TimeSpan ts2 = new TimeSpan(0, (n-1)*t, 0);
        ts =ts+ts2;
        //System.Console.WriteLine(ts.Hours+":"+ts.Minutes+":"+ts.Seconds);
        Console.WriteLine(ts.Hours);
        Console.WriteLine(ts.Minutes);
    }

}
0