23dfcca431 2011-02-23 kinaba: CN = io.stdin:read("*n") 23dfcca431 2011-02-23 kinaba: for C=1, CN, 1 do 23dfcca431 2011-02-23 kinaba: io.stdout:write( string.format("Case #%d: ", C) ) 23dfcca431 2011-02-23 kinaba: 23dfcca431 2011-02-23 kinaba: N = io.stdin:read("*n") 23dfcca431 2011-02-23 kinaba: M = io.stdin:read("*n") 23dfcca431 2011-02-23 kinaba: 23dfcca431 2011-02-23 kinaba: fav = {} 23dfcca431 2011-02-23 kinaba: for i=1, M, 1 do 23dfcca431 2011-02-23 kinaba: T = io.stdin:read("*n") 23dfcca431 2011-02-23 kinaba: fav[i] = {} 23dfcca431 2011-02-23 kinaba: for j=1, T, 1 do 23dfcca431 2011-02-23 kinaba: X, Y = io.stdin:read("*n", "*n") 23dfcca431 2011-02-23 kinaba: fav[i][j] = {X, Y} 23dfcca431 2011-02-23 kinaba: end 23dfcca431 2011-02-23 kinaba: end 23dfcca431 2011-02-23 kinaba: 23dfcca431 2011-02-23 kinaba: io.stdout:write( string.format("%d %d\n", N, M) ) 23dfcca431 2011-02-23 kinaba: end