結果

問題 No.296 n度寝
ユーザー funakoshifunakoshi
提出日時 2019-06-27 14:14:18
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 928 bytes
コンパイル時間 5,562 ms
コンパイル使用メモリ 99,372 KB
実行使用メモリ 24,956 KB
最終ジャッジ日時 2023-09-10 06:31:47
合計ジャッジ時間 3,980 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 55 ms
22,776 KB
testcase_04 AC 53 ms
20,732 KB
testcase_05 AC 57 ms
18,776 KB
testcase_06 AC 55 ms
22,756 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 57 ms
20,844 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 56 ms
20,856 KB
testcase_14 AC 55 ms
20,776 KB
testcase_15 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
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 System.Text;
using System.Threading.Tasks;

namespace yukicoderTest
{
    class Program
    {
        static void Main(string[] args)
        {
            string[] input = Console.ReadLine().Split(' ');
            int ndone = int.Parse(input[0]);
            int hour = int.Parse(input[1]);
            int min = int.Parse(input[2]);
            int retmin = int.Parse(input[3]);
            int plusmin = int.Parse(input[3]);
            if (ndone >1)
            {
                plusmin = (ndone-1) * retmin;
            }
            else if (ndone==1)
            {
                plusmin = 0;
            }
            while(plusmin>59)
            {
                hour++;
                plusmin -= 60;
            }
            min = min + plusmin;
            Console.WriteLine(hour);
            Console.WriteLine(min);
        }

    }
}
0