結果
| 問題 | No.1686 Geschenkt |
| コンテスト | |
| ユーザー |
nazekaiti
|
| 提出日時 | 2022-04-13 21:20:59 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 97 ms / 2,000 ms |
| コード長 | 226 bytes |
| 記録 | |
| コンパイル時間 | 378 ms |
| コンパイル使用メモリ | 20,832 KB |
| 実行使用メモリ | 15,360 KB |
| 最終ジャッジ日時 | 2026-05-29 19:39:17 |
| 合計ジャッジ時間 | 2,291 ms |
|
ジャッジサーバーID (参考情報) |
judge4_1 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 7 |
ソースコード
num =input()
x = list(map(int, input().split()))
z =sorted(x)
lst=[]
count=0
for y in range(int(num)-1):
if z[count+1]-z[count]!=1:
lst.append(z[count+1])
count+=1
lst.append(z[0])
print(sum(lst))
nazekaiti