結果

問題 No.1285 ゴミ捨て
ユーザー dangodango
提出日時 2023-06-21 16:17:56
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 148 ms / 2,000 ms
コード長 115 bytes
コンパイル時間 278 ms
コンパイル使用メモリ 86,624 KB
実行使用メモリ 80,112 KB
最終ジャッジ日時 2023-09-11 11:27:15
合計ジャッジ時間 5,410 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,164 KB
testcase_01 AC 70 ms
71,168 KB
testcase_02 AC 72 ms
71,092 KB
testcase_03 AC 75 ms
71,184 KB
testcase_04 AC 72 ms
71,000 KB
testcase_05 AC 72 ms
71,080 KB
testcase_06 AC 72 ms
71,260 KB
testcase_07 AC 145 ms
79,812 KB
testcase_08 AC 99 ms
76,544 KB
testcase_09 AC 119 ms
77,908 KB
testcase_10 AC 139 ms
79,292 KB
testcase_11 AC 135 ms
79,488 KB
testcase_12 AC 127 ms
78,668 KB
testcase_13 AC 125 ms
78,784 KB
testcase_14 AC 146 ms
79,716 KB
testcase_15 AC 133 ms
78,760 KB
testcase_16 AC 106 ms
77,500 KB
testcase_17 AC 108 ms
77,412 KB
testcase_18 AC 104 ms
77,116 KB
testcase_19 AC 115 ms
78,240 KB
testcase_20 AC 103 ms
77,184 KB
testcase_21 AC 107 ms
77,592 KB
testcase_22 AC 148 ms
79,780 KB
testcase_23 AC 148 ms
80,112 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

A = sorted([int(input()) for _ in range(int(input()))])
print([2, 1][all(A1 + 1 < A2 for A1, A2 in zip(A, A[1:]))])
0