結果

問題 No.1285 ゴミ捨て
ユーザー masayamatumasayamatu
提出日時 2020-11-23 22:36:29
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 208 bytes
コンパイル時間 310 ms
コンパイル使用メモリ 87,040 KB
実行使用メモリ 96,112 KB
最終ジャッジ日時 2023-10-01 00:24:36
合計ジャッジ時間 7,760 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 216 ms
88,768 KB
testcase_01 AC 215 ms
88,676 KB
testcase_02 AC 215 ms
88,324 KB
testcase_03 AC 212 ms
88,816 KB
testcase_04 AC 214 ms
88,760 KB
testcase_05 AC 218 ms
88,664 KB
testcase_06 AC 213 ms
88,172 KB
testcase_07 WA -
testcase_08 AC 234 ms
91,788 KB
testcase_09 AC 257 ms
93,488 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 240 ms
92,216 KB
testcase_17 AC 247 ms
91,628 KB
testcase_18 AC 247 ms
92,140 KB
testcase_19 WA -
testcase_20 AC 243 ms
91,924 KB
testcase_21 AC 248 ms
92,584 KB
testcase_22 WA -
testcase_23 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

from decimal import *
import math

n = int(input())

A = []

count = 1

for i in range(n):
    A.append(int(input()))
A.sort()

for i in range(1,n):
    if A[i] - A[i-1] <= 1:
        count += 1

print(count)
0