HBC14330Two Files题解

云中君 算法基础篇 33 0
想要成为编程高手?那就来试试全网最全C++题库,让您在练习中快速成长。
Small W gets two files. There are n integers in each file. Small W wants to know whether these two files are same. So he invites you to write a program to check whether these two files are same. Small W thinks that two files are same when they have the same integer set.For example file A contains ,and file B contains . They have the same integer set , so they are same.Another sample file C contains, and file D contains .Now you are expected to write a program to compare two files with size of n.

Small W gets two files. There are n integers in each file. Small W wants to know whether these two files are same. So he invites you to write a program to check whether these two files are same. Small W thinks that two files are same when they have the same integer set. For example file A contains (5,3,7,7),and file B contains (7,5,3,3). They have the same integer set (3,5,7), so they are same. Another sample file C contains(2,5,2,5), and file D contains (2,5,2,3). The integer set of C is (2,5),but the integer set of D is (2,3,5),so they are not same. Now you are expected to write a program to compare two files with size of n.

HBC14330Two Files题解
-第1张图片-东莞河马信息技术
(图片来源网络,侵删)
想要在职场中立于不败之地?那就来试试全网最全C++题库,让您在练习中快速提升技能。

标签: HBC14330Two Files题解