Pro.ID22198 TitleStupid Title链接http://10.20.2.8/oj/exercise/problem?problem_id=22198 AC0 Submit15 Ratio0.00% 时间&空间限制描述Xiaoming is an intern of M company. He always reads the program written by his colleagues to fix bugs. But he found some of the programs are really stupid. As a smart guy, how can he bear this? There is an example below. How ugly it is! Maybe you can help him to rewrite this function. int Stupid( int A[maxn],int B[maxn],int n ) 输入The first line contains an integer n indicating the length of arrays. ( n ≤ 100000 ) The second line contains n 32-bit integers of array A. The third line contains n 32-bit integers of array B. Multiple inputs. Process to the end of file. 输出Description Xiaoming is an intern of M company. He always reads the program written by his colleagues to fix bugs. But he found some of the programs are really stupid. As a smart guy, how can he bear this? There is an example below. How ugly it is! Maybe you can help him to rewrite this function. int Stupid( int A[maxn],int B[maxn],int n ) Input The first line contains an integer n indicating the length of arrays. ( n ≤ 100000 ) The second line contains n 32-bit integers of array A. The third line contains n 32-bit integers of array B. Multiple inputs. Process to the end of file. Output For each case, output Stupid( A, B, n ) on a single line. Sample Input 6 Sample Output 4 Source 样例输入6 样例输出4 作者 |