// Copyright © 2021 ์์ฃผํ. All rights reserved.
//
// https://www.acmicpc.net/problem/1032
// BOJ1032 ๋ช
๋ น ํ๋กฌํํธ
#include <iostream>
#include <algorithm>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(0);
int N; cin >> N;
string check; cin >> check;
string temp = check;
for (int i = 0; i < N-1; i++) {
string s; cin >> s;
for (int k = 0; k < check.length(); k++) {
if (check[k] != s[k]) {
temp[k] = '?';
}
}
}
cout << temp;
}
'Algorithm ๐ง๐ปโ๐ป > ๋ฐฑ์ค(BOJ)' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[๋ฐฑ์ค,c++] 10718๋ฒ - We love kriii (0) | 2021.10.16 |
---|---|
[๋ฐฑ์ค,c++] 10610๋ฒ - 30 (0) | 2021.10.16 |
[๋ฐฑ์ค,c++] 10451๋ฒ - ์์ด ์ฌ์ดํด (0) | 2021.10.16 |
[๋ฐฑ์ค,c++] 1026๋ฒ - ๋ณด๋ฌผ (0) | 2021.10.16 |
[๋ฐฑ์ค,c++] 10174๋ฒ - ํฐ๋ฆฐ๋๋กฌ (0) | 2021.10.16 |
[๋ฐฑ์ค,c++] 10159๋ฒ - ์ ์ธ (0) | 2021.10.16 |
๋๊ธ