1234567891011121314151617181920212223enum Day: Int{ case SUN = 6 case MON = 0 case TUE = 1 case WED = 2 case THU = 3 case FRI = 4 case SAT = 5}let daysOfMonth: [Int: Int] = [1: 31, 2: 28, 3: 31, 4: 30, 5: 31, 6: 30, 7: 31, 8: 31, 9: 30, 10: 31, 11: 30, 12: 31] let input = readLine()?.split(separator: " ")let x = Int((input?.first?.description)!)!let y = Int((input?.last?.description)!)!var count..
123456let input1 = Double(readLine()!)!if let input2 = readLine()?.split(separator: " ").map({ Int($0)!}) { let max: Double = Double(input2.max()!) let array = input2.map { Double($0) / max * 100 } print(array.reduce(0) { $0 + $1 } / input1)}Colored by Color Scriptercs
1234567891011121314151617181920212223242526272829303132333435let input = Int(readLine()!)!var inputs = [String]()var count = 0for _ in 1...input { inputs.append(readLine()!)}for content in inputs { var alphabets = [String]() var isGroup = true for i in 0 ..
1234567891011121314151617181920212223let input = Int(readLine()!)!var count = 0var flag = 1while(input - count > flag){ count += flag flag += 1}let remain = input - countlet sum = flag + 1 if(flag % 2 == 0){ let boonza = 1 let boonmo = flag print("\(boonza + remain - 1)/\(boonmo - remain + 1)")}else{ let boonza = flag let boonmo = 1 print("\(boonza - remain + 1)/\(boonmo + remain - 1)")} Colored..