結果

問題 No.734 Careful Engineer
ユーザー ekidenpekidenp
提出日時 2018-09-28 21:40:31
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 51 ms / 2,000 ms
コード長 327 bytes
コンパイル時間 2,031 ms
コンパイル使用メモリ 62,708 KB
実行使用メモリ 22,764 KB
最終ジャッジ日時 2023-08-02 11:33:32
合計ジャッジ時間 2,542 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 48 ms
20,672 KB
testcase_01 AC 48 ms
20,604 KB
testcase_02 AC 49 ms
20,676 KB
testcase_03 AC 49 ms
22,764 KB
testcase_04 AC 50 ms
20,680 KB
testcase_05 AC 46 ms
20,608 KB
testcase_06 AC 48 ms
20,752 KB
testcase_07 AC 47 ms
20,672 KB
testcase_08 AC 47 ms
20,720 KB
testcase_09 AC 51 ms
20,728 KB
testcase_10 AC 49 ms
20,656 KB
testcase_11 AC 49 ms
20,720 KB
testcase_12 AC 48 ms
20,720 KB
testcase_13 AC 47 ms
20,708 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

using System;
using System.Collections.Generic;
class Program
{
	static void Main(string[] args)
	{
		string[]str = Console.ReadLine().Split();
		long A = long.Parse(str[0])*60;
		long B = long.Parse(str[1]);
		long C = long.Parse(str[2])*3600;
		long X = -1;
		if(A>B){
			X = (C-1) / (A-B)+1;
		}
		Console.WriteLine(X);
	}
}
0