Nathan Coulas

Mock CCC '19 Contest 1 J2 - Pusheen OCR

nccc6j2 CPP17 04 May, 2020 4.296s 3 points

Source Code

#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;
  }