結果
問題 | No.2894 Monotonic Intervals |
ユーザー |
|
提出日時 | 2024-09-20 22:09:40 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 67 ms / 2,000 ms |
コード長 | 114 bytes |
コンパイル時間 | 295 ms |
コンパイル使用メモリ | 82,468 KB |
実行使用メモリ | 76,220 KB |
最終ジャッジ日時 | 2024-09-20 22:09:51 |
合計ジャッジ時間 | 1,941 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 14 |
ソースコード
N = int(input())S = input()now = -1ans = 0for i in S:if now != i:ans += 1now = iprint(ans)