📜  将代码 python 转换为 java 代码示例

📅  最后修改于: 2022-03-11 14:52:13.198000             🧑  作者: Mango

代码示例6
n = int(input())
output = []
strings = []
for _ in range(n):
  strings.append(input().strip())
q = int(input())
for _ in range(q):
  L,R,K = map(int, input().split())
  s = ""
  for __ in range(L-1,R):
      s += strings[__]
  output.append(s[K-1])
print(*sorted(output),sep='\n')