description |
---|
백준 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)
}