Skip to content

Latest commit

 

History

History
27 lines (21 loc) · 369 Bytes

2577.md

File metadata and controls

27 lines (21 loc) · 369 Bytes
description
백준 2577번

�숫자의 개수 - 2577

// Some code
var multiple = 1

for _ in 0..<3 {
    multiple *= Int(readLine()!)!
}

var stringMultiple = String(multiple).map{ String($0) }

for i in 0...9 {
    var count = 0
    for j in stringMultiple {
        if "\(i)" == j {
            count += 1
        }
    }
    print(count)
}