Submission #3788381
Source Code Expand
N = int(input()) S = input().split() s = 0 for i in range(1, N): if S[i-1] == S[i]: S[i] = N + 1000000000 s += 1 print(s, flush=True)
Submission Info
Submission Time | |
---|---|
Task | A - Colorful Slimes 2 |
User | atokishi |
Language | Python (3.4.3) |
Score | 200 |
Code Size | 148 Byte |
Status | AC |
Exec Time | 17 ms |
Memory | 2940 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 200 / 200 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | example_0, example_1, example_2, example_3 |
All | example_0, example_1, example_2, example_3, handmade_0, handmade_1, rand_0, rand_1, smallcolor_0, smallcolor_1, smallcolor_2, smallcolor_3, smallcolor_4 |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
example_0 | AC | 17 ms | 2940 KB |
example_1 | AC | 17 ms | 2940 KB |
example_2 | AC | 17 ms | 2940 KB |
example_3 | AC | 17 ms | 2940 KB |
handmade_0 | AC | 17 ms | 2940 KB |
handmade_1 | AC | 17 ms | 2940 KB |
rand_0 | AC | 17 ms | 2940 KB |
rand_1 | AC | 17 ms | 2940 KB |
smallcolor_0 | AC | 17 ms | 2940 KB |
smallcolor_1 | AC | 17 ms | 2940 KB |
smallcolor_2 | AC | 17 ms | 2940 KB |
smallcolor_3 | AC | 17 ms | 2940 KB |
smallcolor_4 | AC | 17 ms | 2940 KB |