結果

問題 No.296 n度寝
ユーザー swdamdrswdamdr
提出日時 2017-02-24 11:10:36
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 59 ms / 1,000 ms
コード長 495 bytes
コンパイル時間 2,014 ms
コンパイル使用メモリ 101,580 KB
実行使用メモリ 22,788 KB
最終ジャッジ日時 2023-09-21 08:34:13
合計ジャッジ時間 4,440 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 58 ms
20,712 KB
testcase_01 AC 58 ms
18,756 KB
testcase_02 AC 59 ms
20,804 KB
testcase_03 AC 58 ms
20,828 KB
testcase_04 AC 58 ms
20,724 KB
testcase_05 AC 58 ms
20,660 KB
testcase_06 AC 58 ms
20,700 KB
testcase_07 AC 58 ms
20,788 KB
testcase_08 AC 58 ms
20,676 KB
testcase_09 AC 59 ms
18,872 KB
testcase_10 AC 59 ms
22,788 KB
testcase_11 AC 59 ms
18,812 KB
testcase_12 AC 59 ms
20,824 KB
testcase_13 AC 58 ms
20,728 KB
testcase_14 AC 58 ms
20,828 KB
testcase_15 AC 58 ms
20,836 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;
using System.Collections.Generic;

class Program
{
    static void Main(string[] args)
    {
        string[] su = Console.ReadLine().Split();
        int cnt = int.Parse(su[0]) - 1;
        int h = int.Parse(su[1]);
        int m = int.Parse(su[2]);
        int time = int.Parse(su[3]);

        m += time * cnt;
        h += m / 60;
        h %= 24;
        m %= 60;

        Console.WriteLine(h);
        Console.WriteLine(m);

        Console.Read();
    }
}
0