結果

問題 No.734 Careful Engineer
ユーザー MaboyMaboy
提出日時 2021-06-22 10:38:19
言語 Swift
(5.10.0)
結果
AC  
実行時間 6 ms / 2,000 ms
コード長 160 bytes
コンパイル時間 6,504 ms
コンパイル使用メモリ 154,572 KB
実行使用メモリ 13,556 KB
最終ジャッジ日時 2023-09-05 11:18:41
合計ジャッジ時間 7,568 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 6 ms
13,156 KB
testcase_01 AC 6 ms
13,152 KB
testcase_02 AC 6 ms
13,552 KB
testcase_03 AC 6 ms
13,184 KB
testcase_04 AC 6 ms
13,244 KB
testcase_05 AC 6 ms
13,056 KB
testcase_06 AC 6 ms
13,464 KB
testcase_07 AC 6 ms
13,288 KB
testcase_08 AC 6 ms
13,108 KB
testcase_09 AC 6 ms
13,280 KB
testcase_10 AC 6 ms
13,556 KB
testcase_11 AC 6 ms
13,044 KB
testcase_12 AC 6 ms
13,172 KB
testcase_13 AC 6 ms
13,140 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import Foundation
let n = readLine()!.split(separator: " ").map{Double($0)!}
let (a,b,c) = (n[0]*60,n[1],n[2]*3600)
print(c/(a-b) > 0 ? Int(ceil(c/(a-b))) : -1)
0