結果
| 問題 | No.2053 12345... |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-01-22 15:43:59 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 220 ms / 2,000 ms |
| + 485µs | |
| コード長 | 140 bytes |
| 記録 | |
| コンパイル時間 | 288 ms |
| コンパイル使用メモリ | 21,412 KB |
| 実行使用メモリ | 37,032 KB |
| 最終ジャッジ日時 | 2026-07-29 08:56:19 |
| 合計ジャッジ時間 | 7,225 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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)