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