Solution for Mock CCC '19 Contest 1 J2 - Pusheen OCR in C++


May 4, 2020 4.296132 seconds C++
#include <bits/stdc++.h>
using namespace std;


int main() {
	ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);
	
	string w, ori = "pusheen";
	cin >> w;
	int c = 0;
	
	for(int i = 0; i < 7; i++){
		if(w[i] != ori[i]) c++;
	}
	cout << c << "\n";
	return 0;
  }

Editorial


No editorial for this problem. :(

Original Problem


You can view the original page for this problem on the DMOJ.