結果

問題 No.734 Careful Engineer
ユーザー Charlotte8687Charlotte8687
提出日時 2018-12-04 13:39:40
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 57 ms / 2,000 ms
コード長 624 bytes
コンパイル時間 2,098 ms
コンパイル使用メモリ 105,664 KB
実行使用メモリ 22,948 KB
最終ジャッジ日時 2023-09-21 11:10:10
合計ジャッジ時間 4,390 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 56 ms
22,688 KB
testcase_01 AC 55 ms
20,824 KB
testcase_02 AC 54 ms
20,904 KB
testcase_03 AC 55 ms
20,776 KB
testcase_04 AC 55 ms
22,712 KB
testcase_05 AC 55 ms
22,748 KB
testcase_06 AC 55 ms
20,788 KB
testcase_07 AC 54 ms
20,728 KB
testcase_08 AC 53 ms
20,708 KB
testcase_09 AC 55 ms
20,776 KB
testcase_10 AC 56 ms
22,948 KB
testcase_11 AC 55 ms
20,768 KB
testcase_12 AC 55 ms
20,696 KB
testcase_13 AC 57 ms
20,800 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;

namespace StudyApp
{
    class Program
    {
        static void Main(string[] args)
        {
            string[] inputs = Console.ReadLine().Trim().Split(' ');
            var a = Int64.Parse(inputs[0]) * 60;
            var b = Int64.Parse(inputs[1]);
            var c = Int64.Parse(inputs[2]) * 60 * 60;

            if (a - b <= 0)
                Console.WriteLine("-1");
            else
            {
                if (c % (a - b) == 0)
                    Console.WriteLine(c / (a - b));
                else
                    Console.WriteLine(c / (a - b) + 1);
            }
        }
    }
}
0