結果

問題 No.135 とりあえず1次元の問題
ユーザー MinixMinix
提出日時 2021-08-09 14:21:33
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 131 bytes
コンパイル時間 120 ms
コンパイル使用メモリ 11,808 KB
実行使用メモリ 21,908 KB
最終ジャッジ日時 2023-10-21 12:05:29
合計ジャッジ時間 2,550 ms
ジャッジサーバーID
(参考情報)
judge12 / judge9
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 145 ms
21,908 KB
testcase_01 AC 31 ms
10,128 KB
testcase_02 AC 29 ms
10,128 KB
testcase_03 AC 29 ms
10,128 KB
testcase_04 AC 29 ms
10,136 KB
testcase_05 AC 30 ms
10,136 KB
testcase_06 AC 29 ms
10,136 KB
testcase_07 AC 29 ms
10,136 KB
testcase_08 AC 29 ms
10,136 KB
testcase_09 AC 30 ms
10,136 KB
testcase_10 AC 30 ms
10,136 KB
testcase_11 AC 29 ms
10,136 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 AC 31 ms
10,248 KB
testcase_20 AC 29 ms
10,224 KB
testcase_21 AC 62 ms
20,856 KB
testcase_22 AC 141 ms
21,904 KB
evil01.txt WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input());c=10**6
x=[i for i in {*[*map(int,input().split())]}]
for i in range(len(x)):
    c=min(c,abs(x[i]-x[i-1]))
print(c)
0