結果
| 問題 | No.2894 Monotonic Intervals |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-09-20 22:09:40 |
| 言語 | PyPy3 (7.3.23 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 67 ms / 2,000 ms |
| + 448µs | |
| コード長 | 114 bytes |
| 記録 | |
| コンパイル時間 | 4,703 ms |
| コンパイル使用メモリ | 95,564 KB |
| 実行使用メモリ | 84,468 KB |
| 最終ジャッジ日時 | 2026-09-01 01:12:10 |
| 合計ジャッジ時間 | 3,091 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 14 |
ソースコード
N = int(input())
S = input()
now = -1
ans = 0
for i in S:
if now != i:
ans += 1
now = i
print(ans)