文件名称:jihexiangdengwenti
下载
别用迅雷、360浏览器下载。
如迅雷强制弹出,可右键点击选“另存为”。
失败请重下,重下不扣分。
如迅雷强制弹出,可右键点击选“另存为”。
失败请重下,重下不扣分。
介绍说明--下载内容均来自于网络,请自行研究使用
Descr iption
给定2 个集合S和T,试设计一个判定S和T是否相等的蒙特卡罗算法。
设计一个拉斯维加斯算法,对于给定的集合S和T,判定其是否相等。
Input
输入数据的第一行有1 个正整数n(n≤10000),表示集合的大小。接下来的2行,每行有n个正整数,分别表示集合S和T中的元素。
Output
将计算结论输出。集合S和T相等则输出YES,否则输出NO。
Sample Input
3
2 3 7
7 2 3
Sample Output
YES
-Descr iption given two sets S and T, to design a test to determine whether S and T equal to the Monte Carlo method. Design a Las Vegas algorithm, for a given set of S and T, determine whether equal. Input The first line of input data has a positive integer n (n ≤ 10000), said the size of the collection. The next two lines, each line has n positive integers, S and T, respectively, in the collection of elements. Output will calculate the conclusion output. Sets S and T equal to the output YES, otherwise output NO. Sample Input 3 2 3 7 7 2 3 Sample Output YES
给定2 个集合S和T,试设计一个判定S和T是否相等的蒙特卡罗算法。
设计一个拉斯维加斯算法,对于给定的集合S和T,判定其是否相等。
Input
输入数据的第一行有1 个正整数n(n≤10000),表示集合的大小。接下来的2行,每行有n个正整数,分别表示集合S和T中的元素。
Output
将计算结论输出。集合S和T相等则输出YES,否则输出NO。
Sample Input
3
2 3 7
7 2 3
Sample Output
YES
-Descr iption given two sets S and T, to design a test to determine whether S and T equal to the Monte Carlo method. Design a Las Vegas algorithm, for a given set of S and T, determine whether equal. Input The first line of input data has a positive integer n (n ≤ 10000), said the size of the collection. The next two lines, each line has n positive integers, S and T, respectively, in the collection of elements. Output will calculate the conclusion output. Sets S and T equal to the output YES, otherwise output NO. Sample Input 3 2 3 7 7 2 3 Sample Output YES
(系统自动生成,下载前可以参看下载内容)
下载文件列表
集合相等判断问题\pp.cpp
................\input.txt
................\tempfile.exe
................\pp.exe
................\pp.obj
................\tctemp.dat
................\readme.txt
集合相等判断问题
................\input.txt
................\tempfile.exe
................\pp.exe
................\pp.obj
................\tctemp.dat
................\readme.txt
集合相等判断问题