No Rules Rules

Dyslexia (feat. 백준, 8387번) 본문

생활/코테

Dyslexia (feat. 백준, 8387번)

개발하는 완두콩 2022. 9. 8. 16:56
728x90
반응형

Dyslexia
https://www.acmicpc.net/problem/8387

 

8387번: Dyslexia

In the recent years children in Byteland have been hardly reading any books. This has a negative influence on the knowledge of orthography among Byteland residents. Teachers at schools do their best to change this situation. They organize many different te

www.acmicpc.net

 

반응형

 

// woohyeon.kim
// kim519620.tistory.com
#include <iostream>
using namespace std;
int main(){
    ios::sync_with_stdio(false), cin.tie(NULL);
    register int N, ans = 0;
    char arr1[100001], arr2[100001];
    cin >> N;
    cin >> arr1 >> arr2;
    for(register int n = 0; n < N; ++n)
        if(arr1[n] != arr2[n])
            ++ans;
    cout << N - ans;
    return 0;
}
// *&)*@*

 

 

아래 "Dyslexia"와 동일한 문제입니다. 다만 맞는 문자의 개수를 출력해야 한다는 결과만 다릅니다.

 

Dyslexia (feat. 백준, 8371번)

Dyslexia https://www.acmicpc.net/problem/8371 10180번: Ship Selection Input begins with a line with one integer T (1 ≤ T ≤ 50) denoting the number of test cases. Each test case begins with a line..

kim519620.tistory.com

 

 

728x90
반응형
Comments