結果

問題 No.1285 ゴミ捨て
ユーザー shakayamishakayami
提出日時 2020-11-26 20:21:23
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 134 bytes
コンパイル時間 281 ms
コンパイル使用メモリ 86,956 KB
実行使用メモリ 79,588 KB
最終ジャッジ日時 2023-10-01 03:28:51
合計ジャッジ時間 4,176 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 67 ms
71,288 KB
testcase_01 AC 67 ms
71,180 KB
testcase_02 AC 67 ms
71,436 KB
testcase_03 AC 72 ms
71,312 KB
testcase_04 AC 69 ms
71,264 KB
testcase_05 AC 68 ms
71,372 KB
testcase_06 AC 68 ms
71,372 KB
testcase_07 WA -
testcase_08 AC 89 ms
76,660 KB
testcase_09 AC 109 ms
78,208 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 95 ms
77,332 KB
testcase_17 AC 97 ms
77,640 KB
testcase_18 AC 97 ms
77,552 KB
testcase_19 WA -
testcase_20 AC 95 ms
77,480 KB
testcase_21 AC 100 ms
77,516 KB
testcase_22 WA -
testcase_23 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
ans=1
A=sorted([int(input()) for i in range(N)])
for i in range(N-1):
    if A[i]+1>=A[i+1]:
        ans+=1
print(ans)
0