結果
| 問題 | No.734 Careful Engineer |
| コンテスト | |
| ユーザー |
rutilicus
|
| 提出日時 | 2021-02-21 23:52:25 |
| 言語 | Kotlin (2.3.20) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 399 bytes |
| 記録 | |
| コンパイル時間 | 10,512 ms |
| コンパイル使用メモリ | 466,996 KB |
| 実行使用メモリ | 58,752 KB |
| 最終ジャッジ日時 | 2026-04-08 08:57:33 |
| 合計ジャッジ時間 | 15,235 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 11 WA * 2 |
ソースコード
fun main() {
val builder = StringBuilder()
val (a, b, c) = readInputLine().split(" ").map { it.toLong() }
val divisor = 60 * a - b
if (divisor <= 0L || divisor > 3600L * c) {
builder.appendLine(-1)
} else {
builder.appendLine((3600 * c + (divisor - 1L)) / divisor)
}
print(builder.toString())
}
fun readInputLine(): String {
return readLine()!!
}
rutilicus