結果

問題 No.734 Careful Engineer
ユーザー Charlotte8687
提出日時 2018-12-04 13:39:40
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 25 ms / 2,000 ms
コード長 624 bytes
コンパイル時間 740 ms
コンパイル使用メモリ 111,752 KB
実行使用メモリ 18,688 KB
最終ジャッジ日時 2025-06-20 00:45:23
合計ジャッジ時間 1,777 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 13
権限があれば一括ダウンロードができます
コンパイルメッセージ
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