結果
問題 | No.135 とりあえず1次元の問題 |
ユーザー |
|
提出日時 | 2015-12-08 22:45:20 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 337 bytes |
コンパイル時間 | 353 ms |
コンパイル使用メモリ | 12,288 KB |
実行使用メモリ | 20,280 KB |
最終ジャッジ日時 | 2025-01-03 10:35:55 |
合計ジャッジ時間 | 2,459 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 6 WA * 16 |
ソースコード
n = int(input())numList = list(map(int, input().split()))ret = Nonefor i in range(n):if (i == n - 1):breakval = abs(numList[i] - numList[i + 1])if i == 0:ret = valcontinueelif (val == 0):continueelif (ret > val):ret = valif ret == None:ret = 0print(ret)