結果
| 問題 |
No.716 距離
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-08-25 21:51:16 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 319 bytes |
| コンパイル時間 | 218 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-06-26 22:08:33 |
| 合計ジャッジ時間 | 2,524 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 3 WA * 37 |
ソースコード
N = int(input())
line = input().split()
line = sorted(line)
df_old = 1000000
#print(line)
for i in range(N -1):
df_new = int(line[i + 1]) - int(line[i])
#print(abs(df_new), abs(df_old))
if abs(df_new) < abs(df_old):
df_old = df_new
print(df_old)
print(abs(int(line[0]) - int(line[N - 1])))