結果
問題 |
No.921 ずんだアロー
|
ユーザー |
![]() |
提出日時 | 2020-01-16 23:56:20 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 106 ms / 2,000 ms |
コード長 | 197 bytes |
コンパイル時間 | 317 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 20,840 KB |
最終ジャッジ日時 | 2024-06-24 16:50:26 |
合計ジャッジ時間 | 3,583 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 22 |
ソースコード
n=int(input()) a=[int(i) for i in input().split()] now=True cnt=1 for i in range(1,n): if now and a[i]==a[i-1] or not now: now=True cnt+=1 else: now=False print(cnt)