当前你的浏览器版本过低,网站已在兼容模式下运行,兼容模式仅提供最小功能支持,网站样式可能显示不正常。
请尽快升级浏览器以体验网站在线编辑、在线运行等功能。
For each game, print the game number as well as the visiting and home team names in the first line, as follows:
Game <x>: <visiting> vs. <home>This is followed by a blank line.
Next print the players who score hits and runs, separately, for each inning in the order they occur in the game. Use the format as follows:
Inning 1:Indent the list of players by two spaces. Print the player name and the team name right-justified in a field width of 15 (in addition to the indentation before the player's name and one space separation between the player's name and team name). If no one scores a hit or a run, print the single line
Hits:
<player1> <team>
<player2> <team>
Runs:
<player3> <team>
<player4> <team>
none(indented by two spaces) in the appropriate section instead of a list of players. Print a blank line after the output for each inning.
At the end of the game, print a summary on the number of runs and hits scored for each team, starting with the visiting team:
End of Game:The summary should be indented by two spaces. Print the team name right-justified in a field width of 15 (in addition to the indentation).
<visiting> <x> runs, <x> hits
<home> <x> runs, <x> hits
Separate the output of consecutive games by a line containing 60 '=' signs.
1 Rangers Young .213 .523 Kinsler .207 .602 Sosa .254 .300 Laird .220 .432 Byrd .206 .749 Wilkerson .236 .508 Catalanotto .272 .483 Teixeira .297 .573 Saltalamacchia .243 .632 BlueJays Wells .378 .502 Hill .276 .544 Overbay .372 .694 McDonald .373 .618 Adams .320 .690 Rios .300 .450 Johnson .379 .559 Stairs .302 .621 Zaun .346 .515
Game 1: Rangers vs. BlueJays Inning 1: Hits: Hill BlueJays Overbay BlueJays Adams BlueJays Runs: none Inning 2: Hits: none Runs: none Inning 3: Hits: Catalanotto Rangers Wells BlueJays Hill BlueJays Adams BlueJays Runs: Wells BlueJays Inning 4: Hits: Kinsler Rangers Runs: none Inning 5: Hits: Catalanotto Rangers Runs: none Inning 6: Hits: Sosa Rangers Laird Rangers Rios BlueJays Runs: none Inning 7: Hits: Wilkerson Rangers Teixeira Rangers Stairs BlueJays Runs: none Inning 8: Hits: none Runs: none Inning 9: Hits: none Runs: none End of Game: Rangers 0 runs, 7 hits BlueJays 1 runs, 8 hits
时间上限 | 内存上限 |
5000 | 65536 |