WEBSITE RETURNED, HOWEVER SUBMIT QUANTITY IS RESTRICTED PER DAY TO VERY LITTLE (UNDER JUDGE0 NEW POLICY, API PROVIDER). Therefore it is very much for you to pay attention TEST CAREFULLY CODE BEFORE SUBMIT.

Check array symmetry

Threads: For an array of n integers. Check if the array is mirrored. Plate symmetric arrays when writing in the forward or reverse are identical results.
Input: The first line is an integer n. The second line 2 n is an integer array, of numbers separated by spaces.
Output: If the array symmetry print “TRUE”, if not printed “FALSE”.
For example:

input:
4
1 3 3 1
output:
TRUE

You are not logged in? Log in to Submit Now!

4 Comments

Add a Comment