답안 #700853

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
700853 2023-02-19T09:24:01 Z PenguinsAreCute Lamps (JOI19_lamps) C++17
4 / 100
46 ms 6112 KB
#include <bits/stdc++.h>
using namespace std;
int main() {
    int N, blocks = 0; cin >> N; string A, B; cin >> A >> B;
    if(B[0] == '1') blocks++;
    for(int i = 1; i < N; i++) {
        if(B[i] == '1' && B[i - 1] == '0') blocks++;
    }
    cout << blocks;
}
# 결과 실행 시간 메모리 Grader output
1 Incorrect 1 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 1 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 0 ms 212 KB Output is correct
3 Correct 1 ms 212 KB Output is correct
4 Correct 1 ms 340 KB Output is correct
5 Correct 1 ms 212 KB Output is correct
6 Correct 0 ms 212 KB Output is correct
7 Correct 42 ms 6112 KB Output is correct
8 Correct 45 ms 6088 KB Output is correct
9 Correct 43 ms 6092 KB Output is correct
10 Correct 43 ms 6036 KB Output is correct
11 Correct 45 ms 6024 KB Output is correct
12 Correct 45 ms 6080 KB Output is correct
13 Correct 43 ms 6088 KB Output is correct
14 Correct 46 ms 6060 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Incorrect 1 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -