Untitled
unknown
plain_text
a year ago
329 B
8
Indexable
#include <iostream> #include <string> using namespace std; int main(){ freopen("TRACNGHIEM.INP","r",stdin); freopen("TRACNGHIEM.OUT","w",stdout); string s1, s2; cin >> s1 >> s2; int cnt = 0; for(int i = 0; i < s1.size(); i++){ if(s1[i] == s2[i]) ++cnt; } cout << cnt << endl; return 0; }
Editor is loading...
Leave a Comment