結果
| 問題 |
No.2053 12345...
|
| コンテスト | |
| ユーザー |
googol_S0
|
| 提出日時 | 2022-08-21 12:50:38 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 136 bytes |
| コンパイル時間 | 294 ms |
| コンパイル使用メモリ | 82,380 KB |
| 実行使用メモリ | 102,984 KB |
| 最終ジャッジ日時 | 2024-10-10 05:52:08 |
| 合計ジャッジ時間 | 3,494 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 2 |
| other | WA * 31 |
ソースコード
N=int(input())
A=list(map(int,input().split()))
P=0
Q=0
for i in range(1,N):
if A[i-1]==A[i]:
P+=1
else:
P=0
Q+=P
print(Q)
googol_S0