250x250
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- D4
- the midnight library
- 원서
- swexpertacademy
- 코테 준비
- 백준
- 알고리즘
- 쉬운 알고리즘 문제
- 완전탐색
- englishbook
- 코테
- English
- 직무면접
- 원서읽기
- dfs
- sw expert
- MySQL
- sw expert academy
- PyQt
- 프로그래머스
- 알고리즘 문제
- BFS
- 코딩테스트
- SQL
- 삼성
- 원서읽자
- STUDYENGLISH
- readingbook
- 코테 대비
- nightroutine
Archives
- Today
- Total
시나브로
[D3] 9317. 석찬이의 받아쓰기 본문
728x90
#include<stdio.h>
#include<iostream>
using namespace std;
int main(void) {
int tc = 0;
cin >> tc;
for (int i = 0; i < tc; i++) {
string a;
string b;
int s_l = 0;
cin >> s_l;
cin >> a;
cin >> b;
int count = 0;
for (int j = 0; j < s_l; j++) {
if (a[j] == b[j])
count++;
}
cout <<"#"<<i+1<<" "<< count<<endl;
}
return 0;
}
728x90
'알고리즘 > SW Expert Academy' 카테고리의 다른 글
[D3] 9229. 한빈이와 Spot Mart (0) | 2020.03.10 |
---|---|
[D3] 9280. 진용이네 주차타워 (0) | 2020.03.09 |
8567. 약수의 개수가 많은 수 (0) | 2020.01.07 |
8568. 3으로 나눈 순열 (0) | 2020.01.07 |
9088. 다이아몬드 (0) | 2020.01.06 |
Comments