結果
| 問題 | No.135 とりあえず1次元の問題 |
| コンテスト | |
| ユーザー |
Co-3
|
| 提出日時 | 2020-08-22 18:39:38 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 248 bytes |
| 記録 | |
| コンパイル時間 | 137 ms |
| コンパイル使用メモリ | 85,120 KB |
| 実行使用メモリ | 81,920 KB |
| 最終ジャッジ日時 | 2026-05-04 07:19:49 |
| 合計ジャッジ時間 | 1,803 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 21 WA * 1 |
ソースコード
n = int(input())
x = list(map(int,input().split()))
x.sort()
ans = 1000000
a = 0
for i in range(n-1):
y = (x[i+1])-(x[i])
if y == 0:
continue
elif y<ans:
ans = y
a +=1
if a == 0:
print(0)
else:
print(ans)
Co-3