結果
問題 | No.734 Careful Engineer |
ユーザー | toshiro_yanagi |
提出日時 | 2018-11-26 22:38:58 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 860 bytes |
コンパイル時間 | 1,032 ms |
コンパイル使用メモリ | 61,276 KB |
実行使用メモリ | 22,792 KB |
最終ジャッジ日時 | 2023-09-02 09:14:57 |
合計ジャッジ時間 | 2,699 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 57 ms
20,720 KB |
testcase_01 | AC | 58 ms
22,792 KB |
testcase_02 | AC | 58 ms
22,644 KB |
testcase_03 | AC | 57 ms
20,636 KB |
testcase_04 | AC | 56 ms
20,644 KB |
testcase_05 | AC | 57 ms
20,784 KB |
testcase_06 | AC | 56 ms
22,732 KB |
testcase_07 | AC | 55 ms
22,704 KB |
testcase_08 | WA | - |
testcase_09 | AC | 56 ms
22,764 KB |
testcase_10 | AC | 56 ms
18,780 KB |
testcase_11 | AC | 56 ms
20,676 KB |
testcase_12 | AC | 55 ms
18,632 KB |
testcase_13 | AC | 57 ms
20,744 KB |
ソースコード
using System.Collections.Generic; using System.Linq; using static System.Console; class Program { static void Main() { var hand = NextInt() * 60L; var runCost = NextInt(); var initCost = NextInt() * 3600L; if (hand <= runCost) { WriteLine(-1); } WriteLine((initCost - 1) / (hand - runCost) + 1); } static int NextInt() { return int.Parse(NextString()); } static string NextString() { var result = new List<char>(); while (true) { int next = Read(); if (next < 0) break; var nextChar = (char)next; if (!char.IsWhiteSpace(nextChar)) result.Add(nextChar); else if (nextChar != '\r') break; } return string.Join("", result); } }