Submission #1101109


Source Code Expand

n = gets.to_i
a = gets.split.map &:to_f
puts ((a[n-1]-a[n]) / (n - 1))

Submission Info

Submission Time
Task A - 差の平均
User kobae964
Language Ruby (1.9.3)
Score 0
Code Size 72 Byte
Status RE
Exec Time 36 ms
Memory 3204 KB

Compile Error

./Main.rb:2: warning: `&' interpreted as argument prefix
./Main.rb:3: warning: (...) interpreted as grouped expression

Judge Result

Set Name All
Score / Max Score 0 / 100
Status
RE × 51
Set Name Test Cases
All 00-sample-00, 00-sample-01, 00-sample-02, 00-sample-03, largest-01, random-00-00052, random-01-00052, random-02-00023, random-03-00056, random-04-00066, random-05-00033, random-06-00062, random-07-00071, random-08-00064, random-09-00028, random-10-00054, random-11-00095, random-12-00046, random-13-00086, random-14-00092, random-15-00089, random-16-00071, random-17-00006, random-18-00064, random-19-00082, random-20-00089, random-21-00050, random-22-00085, random-23-00049, random-24-00062, random-25-00010, random-26-00095, random-27-00032, random-28-00069, random-29-00020, random-30-00036, random-31-00008, random-32-00022, random-33-00076, random-34-00052, random-35-00090, random-36-00075, random-37-00007, random-38-00067, random-39-00023, random-40-00075, random-41-00085, random-42-00094, random-43-00088, random-44-00093, random-45-00088
Case Name Status Exec Time Memory
00-sample-00 RE 31 ms 3168 KB
00-sample-01 RE 31 ms 3048 KB
00-sample-02 RE 30 ms 3052 KB
00-sample-03 RE 32 ms 3052 KB
largest-01 RE 31 ms 3052 KB
random-00-00052 RE 30 ms 3040 KB
random-01-00052 RE 32 ms 3052 KB
random-02-00023 RE 30 ms 3044 KB
random-03-00056 RE 30 ms 3044 KB
random-04-00066 RE 29 ms 3044 KB
random-05-00033 RE 30 ms 3048 KB
random-06-00062 RE 31 ms 3084 KB
random-07-00071 RE 32 ms 3052 KB
random-08-00064 RE 31 ms 3052 KB
random-09-00028 RE 31 ms 3204 KB
random-10-00054 RE 32 ms 3052 KB
random-11-00095 RE 31 ms 3052 KB
random-12-00046 RE 30 ms 3044 KB
random-13-00086 RE 32 ms 3052 KB
random-14-00092 RE 30 ms 3052 KB
random-15-00089 RE 30 ms 3044 KB
random-16-00071 RE 30 ms 3044 KB
random-17-00006 RE 31 ms 3072 KB
random-18-00064 RE 34 ms 3168 KB
random-19-00082 RE 34 ms 3048 KB
random-20-00089 RE 33 ms 3044 KB
random-21-00050 RE 32 ms 3052 KB
random-22-00085 RE 34 ms 3044 KB
random-23-00049 RE 32 ms 3048 KB
random-24-00062 RE 33 ms 3192 KB
random-25-00010 RE 31 ms 3052 KB
random-26-00095 RE 32 ms 3048 KB
random-27-00032 RE 32 ms 3076 KB
random-28-00069 RE 34 ms 3040 KB
random-29-00020 RE 31 ms 3040 KB
random-30-00036 RE 32 ms 3052 KB
random-31-00008 RE 30 ms 3052 KB
random-32-00022 RE 33 ms 3048 KB
random-33-00076 RE 36 ms 3048 KB
random-34-00052 RE 35 ms 3092 KB
random-35-00090 RE 34 ms 3048 KB
random-36-00075 RE 33 ms 3052 KB
random-37-00007 RE 33 ms 3096 KB
random-38-00067 RE 33 ms 3052 KB
random-39-00023 RE 33 ms 3072 KB
random-40-00075 RE 32 ms 3072 KB
random-41-00085 RE 32 ms 3052 KB
random-42-00094 RE 31 ms 3048 KB
random-43-00088 RE 33 ms 3088 KB
random-44-00093 RE 32 ms 3084 KB
random-45-00088 RE 32 ms 3084 KB
sample-00 RE 30 ms 3052 KB
sample-01 RE 31 ms 3052 KB
sample-02 RE 31 ms 3088 KB
sample-03 RE 32 ms 3120 KB