結果
| 問題 |
No.2894 Monotonic Intervals
|
| コンテスト | |
| ユーザー |
sasa8uyauya
|
| 提出日時 | 2024-09-20 22:39:15 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 88 ms / 2,000 ms |
| コード長 | 107 bytes |
| コンパイル時間 | 327 ms |
| コンパイル使用メモリ | 81,924 KB |
| 実行使用メモリ | 86,604 KB |
| 最終ジャッジ日時 | 2024-09-20 22:39:17 |
| 合計ジャッジ時間 | 2,343 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 14 |
ソースコード
n=int(input()) s=input() l=[] for i in range(n): if i==0 or s[i-1]!=s[i]: l+=[0] l[-1]+=1 print(len(l))
sasa8uyauya