結果

問題 No.35 タイパー高橋
ユーザー MaboyMaboy
提出日時 2021-06-02 15:33:35
言語 Swift
(5.10.0)
結果
WA  
実行時間 -
コード長 363 bytes
コンパイル時間 8,834 ms
コンパイル使用メモリ 129,252 KB
実行使用メモリ 9,472 KB
最終ジャッジ日時 2024-04-27 07:44:13
合計ジャッジ時間 9,575 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 16 ms
9,344 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

var score = [0,0]
let N = Int(readLine()!)
for _ in 1...N!{
    let input = readLine()?.split(separator: " ")
    let time = Int(input![0])
    let string = input![1]
    let max = time! / (1000/12)
    let good = min( max, string.count)
    let bad = string.count - good
    score[0] += good
    score[1] += bad
}
print(score[0],terminator: " ")
print(score[1])
0