結果

問題 No.1686 Geschenkt
ユーザー 𖧱𖦸𖥩𖥣𖥩𖥣
提出日時 2024-05-02 10:08:22
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 125 bytes
コンパイル時間 162 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-11-22 23:01:25
合計ジャッジ時間 1,313 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 3
other AC * 2 WA * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
ls = list(map(int,input().split()))
ls.sort()
c = 0
h = 0
for i in ls:
	if i-c > 1:
		h += i
	c = i
print(c)
0