結果

問題 No.734 Careful Engineer
ユーザー MaboyMaboy
提出日時 2021-06-22 10:19:07
言語 Swift
(5.10.0)
結果
TLE  
実行時間 -
コード長 192 bytes
コンパイル時間 4,049 ms
コンパイル使用メモリ 125,764 KB
実行使用メモリ 12,504 KB
最終ジャッジ日時 2023-09-05 11:02:41
合計ジャッジ時間 8,194 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 3 ms
12,504 KB
testcase_01 TLE -
testcase_02 -- -
testcase_03 -- -
testcase_04 -- -
testcase_05 -- -
testcase_06 -- -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

let n = readLine()!.split(separator: " ").map{Int($0)!}
let (a,b,c) = (n[0] * 60,n[1],n[2] * 3600)
var x = 1
if a > b{
    while c+b*x >= a*x{
        x += 1
    }
}else{
    x = -1
}
print(x)
0