結果

問題 No.1285 ゴミ捨て
ユーザー mlihua09mlihua09
提出日時 2020-11-13 21:52:21
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 126 ms / 2,000 ms
コード長 163 bytes
コンパイル時間 790 ms
コンパイル使用メモリ 86,584 KB
実行使用メモリ 78,696 KB
最終ジャッジ日時 2023-08-19 07:16:15
合計ジャッジ時間 3,631 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 63 ms
71,036 KB
testcase_01 AC 60 ms
71,176 KB
testcase_02 AC 62 ms
71,120 KB
testcase_03 AC 61 ms
71,212 KB
testcase_04 AC 60 ms
71,060 KB
testcase_05 AC 65 ms
71,032 KB
testcase_06 AC 61 ms
71,032 KB
testcase_07 AC 120 ms
78,068 KB
testcase_08 AC 80 ms
76,648 KB
testcase_09 AC 97 ms
77,796 KB
testcase_10 AC 119 ms
78,328 KB
testcase_11 AC 113 ms
78,348 KB
testcase_12 AC 105 ms
77,780 KB
testcase_13 AC 104 ms
77,848 KB
testcase_14 AC 122 ms
78,416 KB
testcase_15 AC 108 ms
77,544 KB
testcase_16 AC 88 ms
77,416 KB
testcase_17 AC 88 ms
77,284 KB
testcase_18 AC 90 ms
77,120 KB
testcase_19 AC 97 ms
77,628 KB
testcase_20 AC 85 ms
77,224 KB
testcase_21 AC 90 ms
77,372 KB
testcase_22 AC 126 ms
78,696 KB
testcase_23 AC 126 ms
78,436 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())

A = [int(input()) for i in range(N)]

A.sort()

if any(A[i] == A[i - 1] + 1 for i in range(1, N)):
    
    print(2)
    
else:
    
    print(1)
0