제출 #381393

#제출 시각아이디문제언어결과실행 시간메모리
381393BilAktauAlmansurZigZag (COCI17_zigzag)C++17
0 / 80
75 ms5212 KiB
#include <bits/stdc++.h>
using namespace std;
int main () {
	int a, b;
	cin>>a>>b;
	vector <string> s;
	vector <char> s1;
	for (int i=0; i<a; i++) {
		string s2;
		cin>>s2;
		s.push_back(s2);
	}
	for (int i=0; i<b; i++) {
		char ch;
		cin>>ch;
		s1.push_back(ch);
	}
	for (int i=0; i<b; i++) {
		int j=0;
		if (s1[i]==s[i][j]) {
			cout << s[i] << endl;
		}		
	}
		return 0;
}
#Verdict Execution timeMemoryGrader output
Fetching results...