結果
| 問題 | 
                            No.296 n度寝
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2017-02-24 11:10:36 | 
| 言語 | C#(csc)  (csc 3.9.0)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 24 ms / 1,000 ms | 
| コード長 | 495 bytes | 
| コンパイル時間 | 699 ms | 
| コンパイル使用メモリ | 106,992 KB | 
| 実行使用メモリ | 26,004 KB | 
| 最終ジャッジ日時 | 2024-07-07 02:53:46 | 
| 合計ジャッジ時間 | 1,538 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge5 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 16 | 
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
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();
    }
}