func x(m:(Int,Int),n:[(Int,Int)]){let i=n.reduce(m){($0.0+$1.0,$0.1+$1.1)};print(i.0%24,i.1%60)} x(m: (23,59),n: [(1,1)])
Standard input is empty
0 0
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!