結果
| 問題 |
No.2053 12345...
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-01-22 15:43:59 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 244 ms / 2,000 ms |
| コード長 | 140 bytes |
| コンパイル時間 | 283 ms |
| コンパイル使用メモリ | 12,800 KB |
| 実行使用メモリ | 32,656 KB |
| 最終ジャッジ日時 | 2024-06-24 20:29:37 |
| 合計ジャッジ時間 | 5,758 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 31 |
ソースコード
N=int(input()) A=list(map(int,input().split())) res=0 x=0 for i in range(N): while x<N and A[x]==A[i]+(x-i): x+=1 res+=x-i-1 print(res)