結果
問題 | No.135 とりあえず1次元の問題 |
ユーザー | naoe123 |
提出日時 | 2020-01-16 09:52:13 |
言語 | Python3 (3.11.6 + numpy 1.26.0 + scipy 1.11.3) |
結果 |
RE
|
実行時間 | - |
コード長 | 218 bytes |
コンパイル時間 | 490 ms |
コンパイル使用メモリ | 10,516 KB |
実行使用メモリ | 19,776 KB |
最終ジャッジ日時 | 2023-09-05 14:24:34 |
合計ジャッジ時間 | 2,481 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge12 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 84 ms
19,776 KB |
testcase_01 | AC | 15 ms
7,876 KB |
testcase_02 | AC | 15 ms
7,852 KB |
testcase_03 | RE | - |
testcase_04 | WA | - |
testcase_05 | AC | 16 ms
7,924 KB |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | WA | - |
testcase_10 | WA | - |
testcase_11 | WA | - |
testcase_12 | WA | - |
testcase_13 | WA | - |
testcase_14 | WA | - |
testcase_15 | WA | - |
testcase_16 | WA | - |
testcase_17 | WA | - |
testcase_18 | WA | - |
testcase_19 | AC | 16 ms
7,928 KB |
testcase_20 | WA | - |
testcase_21 | AC | 75 ms
19,096 KB |
testcase_22 | AC | 83 ms
19,768 KB |
evil01.txt | AC | 82 ms
19,604 KB |
ソースコード
N=int(input()) X=list(map(int,input().split())) distance=[] for i in range(N-1): distance.append(abs(X[i]-X[i+1])) distance=[i for i in distance if i!=0] if len(X)!=0: print(min(distance)) else: print(0)