Solutions are presented as using the least memory and the fastest execution time. It also takes the top
10 most recent solutions from each language. If you want to limit to a specific index, click the
"Solved" button and go to that problem.
Problems
You are given an array of integers ai. Find the largest absolute value of difference between adjacent elements of the array max(abs(ai - ai + 1)). The only line of the input contains a list of space-separated integers ai (1 ≤ ai ≤ 100) -- elements of the array. The size of the array is between 2 and 10, inclusive. Note that the size of the array is not given explicitly! Output a single integer -- the largest absolute value of difference between adjacent elements of the array. |
Tutorials
Submissions
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
|
41009572 |
ReaLNero1 |
D |
July 31, 2018, 11:52 a.m. |
OK |
J |
TESTS |
26 |
31 |
0 |
|
2100 |
|
17328181 |
TeddyMichael |
D |
April 15, 2016, 2:27 p.m. |
OK |
J |
TESTS |
26 |
31 |
0 |
|
2100 |
|
17320412 |
Wael.Al.Jamal |
D |
April 14, 2016, 9:23 p.m. |
OK |
J |
TESTS |
26 |
31 |
0 |
|
2100 |
|
17316319 |
130705009 |
D |
April 14, 2016, 3:23 p.m. |
OK |
J |
TESTS |
26 |
31 |
0 |
|
2100 |
|
17302178 |
Shik |
D |
April 13, 2016, 1:09 p.m. |
OK |
J |
TESTS |
26 |
31 |
0 |
|
2100 |
|
17275892 |
SeTSeR |
D |
April 11, 2016, 10:12 a.m. |
OK |
J |
TESTS |
26 |
31 |
0 |
|
2100 |
|
17274631 |
sunilsamal |
D |
April 11, 2016, 7:35 a.m. |
OK |
J |
TESTS |
26 |
31 |
0 |
|
2100 |
|
17272032 |
arcanae |
D |
April 10, 2016, 10:40 p.m. |
OK |
J |
TESTS |
26 |
31 |
0 |
|
2100 |
|
17270820 |
diralik |
D |
April 10, 2016, 7:39 p.m. |
OK |
J |
TESTS |
26 |
31 |
0 |
|
2100 |
|
17270363 |
svxf |
D |
April 10, 2016, 7:01 p.m. |
OK |
J |
TESTS |
26 |
31 |
0 |
|
2100 |
remove filters
Back to search problems