結果
問題 | No.921 ずんだアロー |
ユーザー |
|
提出日時 | 2019-11-09 11:53:06 |
言語 | Python2 (2.7.18) |
結果 |
AC
|
実行時間 | 86 ms / 2,000 ms |
コード長 | 194 bytes |
コンパイル時間 | 887 ms |
コンパイル使用メモリ | 6,912 KB |
実行使用メモリ | 14,868 KB |
最終ジャッジ日時 | 2024-09-15 04:20:31 |
合計ジャッジ時間 | 2,954 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge6 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 22 |
ソースコード
#yuki921 n=int(raw_input()) a=map(int,raw_input().split()) res=1 f=True for i in range(1,n): if a[i]!=a[i-1]: if f: f=False else: res+=1 f=True else: res+=1 f=True print res