結果

問題 No.734 Careful Engineer
ユーザー clocklrclocklr
提出日時 2018-09-28 22:19:24
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 25 ms / 2,000 ms
コード長 652 bytes
コンパイル時間 2,180 ms
コンパイル使用メモリ 103,168 KB
実行使用メモリ 26,016 KB
最終ジャッジ日時 2024-04-20 11:05:59
合計ジャッジ時間 1,719 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 25 ms
25,864 KB
testcase_01 AC 25 ms
22,072 KB
testcase_02 AC 25 ms
21,812 KB
testcase_03 AC 25 ms
23,948 KB
testcase_04 AC 25 ms
25,872 KB
testcase_05 AC 25 ms
25,944 KB
testcase_06 AC 24 ms
25,996 KB
testcase_07 AC 25 ms
23,824 KB
testcase_08 AC 25 ms
26,016 KB
testcase_09 AC 24 ms
24,084 KB
testcase_10 AC 25 ms
23,904 KB
testcase_11 AC 25 ms
24,028 KB
testcase_12 AC 25 ms
21,936 KB
testcase_13 AC 25 ms
23,956 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 static System.Console;
using static System.Math;

public class Hello{
    public static void Main(){
        string[] input = ReadLine().Split(' ');
        long a = long.Parse(input[0]);
        long b = long.Parse(input[1]);
        long c = long.Parse(input[2]);
        a *= 60;
        c *= 3600;
        long ab = a-b;
        long ans = -1;
        if(a>b){
            if(c%ab==0){
                long aa = c/ab;
                if(aa>0){
                    ans = aa;
                }
            }else{
                long aa = (c/ab)+1;
                ans = aa;
            }
        }
        WriteLine(ans);
    }
}
0