2025年acm8试题及答案.pdfVIP

  • 2
  • 0
  • 约7.16千字
  • 约 9页
  • 2026-03-05 发布于河南
  • 举报

2025年acm8试题及答案

考试时间:______分钟总分:______分姓名:______

ProblemA:LibraryBookSorting

Anautomatedlibrarysystemneedstosortalistofbooksbasedon

theiruniqueIDs.EachbookisrepresentedbyasingleintegerID.The

systemshouldsortthebooksinascendingorderoftheirIDs.Writea

programthatreadsalistofbookIDsandoutputsthesortedlist.

Input:

ThefirstlinecontainsanintegerN(1≤N≤1000),thenumberof

books.

ThesecondlinecontainsNintegersrepresentingtheIDsofthe

books,whereea

文档评论(0)

1亿VIP精品文档

相关文档