結果
| 問題 | No.2894 Monotonic Intervals |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-09-20 21:37:06 |
| 言語 | PyPy3 (7.3.23 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 70 ms / 2,000 ms |
| + 416µs | |
| コード長 | 116 bytes |
| 記録 | |
| コンパイル時間 | 230 ms |
| コンパイル使用メモリ | 96,076 KB |
| 実行使用メモリ | 84,352 KB |
| 最終ジャッジ日時 | 2026-09-01 00:33:13 |
| 合計ジャッジ時間 | 3,345 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 14 |
ソースコード
N = int(input())
S = input()
cnt = 0
now = 'a'
for c in S:
if c != now:
cnt += 1
now = c
print(cnt)