結果
問題 |
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=N for a in A: if a+1 in B: X+=1 else: continue b=a+1 while b+2 in B: X+=1 b+=2 print(X)