結果
問題 | No.1268 Fruit Rush 2 |
ユーザー |
👑 ![]() |
提出日時 | 2020-10-23 22:24:02 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 198 bytes |
コンパイル時間 | 551 ms |
コンパイル使用メモリ | 82,304 KB |
実行使用メモリ | 140,800 KB |
最終ジャッジ日時 | 2024-07-21 11:05:54 |
合計ジャッジ時間 | 7,097 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 28 TLE * 1 -- * 4 |
ソースコード
N=int(input())A=list(map(int,input().split()))B=set(A)X=Nfor a in A:if a+1 in B:X+=1else:continueb=a+1while b+2 in B:X+=1b+=2print(X)