Submission #15158

#TimeUsernameProblemLanguageResultExecution timeMemory
15158aqaqaqz뚊 (kriii3_EE)C++98
20 / 20
0 ms1720 KiB
#include <iostream> using namespace std; bool checkImage(int w, int h); char arr[10][10]; char arr2[20][20]; int main(){ int width, height; cin >> width >> height; for(int i=0;i<height;i++){ for(int j=0;j<width;j++){ cin >> arr[i][j]; } } for(int i=0;i<height;i++){ for(int j=0;j<2*width;j++){ cin >> arr2[i][j]; } } if(checkImage(width, height)) cout << "Eyfa" << endl; else cout << "Not Eyfa" << endl; return 0; } bool checkImage(int w, int h){ for(int i=0;i<h;i++){ for(int j=0;j<w;j++){ if((arr[i][j] == arr2[i][j*2]) && (arr[i][j] == arr2[i][j*2+1]) ) continue; else return false; } } return true; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...