結果
| 問題 | No.734 Careful Engineer |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-12-04 13:39:40 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
AC
|
| 実行時間 | 16 ms / 2,000 ms |
| + 612µs | |
| コード長 | 624 bytes |
| 記録 | |
| コンパイル時間 | 439 ms |
| コンパイル使用メモリ | 110,128 KB |
| 実行使用メモリ | 26,636 KB |
| 最終ジャッジ日時 | 2026-07-12 08:04:51 |
| 合計ジャッジ時間 | 1,828 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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.
ソースコード
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);
}
}
}
}