- Time limit: 0.5 seconds
- Memory limit: 256 MB
Mohammad Reza, who has finished his university entrance exam, wants to participate in all Quera programming contests; however, he is currently busy conducting vision tests for students applying for driving licenses.
Mohammad Reza places a word made up of English letters two meters away from the student, and the student must write it down exactly. Then, Mohammad Reza tells the student the number of incorrect letters as an indicator of the student's vision impairment.
Mohammad Reza is in a hurry to participate in the Quera contest and wants to perform the vision tests using a computer, so he has requested a program that takes the word placed in front of the student and the word written by the student as input, and outputs the number of mistakes made by the student.
The first line of the input contains a number ( n ) representing the number of letters in the words.
The second line contains a string consisting of uppercase and lowercase English letters, representing the word placed in front of the student.
The third line also contains a string consisting of uppercase and lowercase English letters, representing the word written by the student.
1 <= n <= 100000
The only line of the output should contain a non-negative integer which is the number of letters the student wrote incorrectly.
3
ABC
aBD
2
21
MASIOJESTDYSLEKTYKIEM
MAsIOJSSTDXSIEKTYKLEM
5
- محدودیت زمان: ۰.۵ ثانیه
- محدودیت حافظه: ۲۵۶ مگابایت
محمدرضاص که کنکورش را داده، میخواهد در همهی مسابقات برنامهنویسی کوئرا شرکت کند؛ اما اکنون درگیر گرفتن تست بینایی از هنرجویان متقاضی گواهینامهی رانندگی است.
محمدرضاص در فاصلهی دو متری هنرجو یک کلمه از حروف انگلیسی قرار میدهد و این هنرجو باید از روی آن عیناً بنویسد. سپس محمدرضاص تعداد حرفهای اشتباه نوشته شده را بعنوان مقدار کوری این فرد به او بگوید.
محمدرضاص برای دادن مسابقهی کوئرا عجله دارد و میخواهد بصورت کامپیوتری کارهای تست بینایی را انجام دهد، پس درخواست کرده که برنامهای بنویسید که با ورودی گرفتن کلمهی گذاشتهشده در جلوی هنرجو و کلمهی نوشته شده توسط هنرجو، تعداد اشتباههای هنرجو را خروجی دهد.
در سطر اول ورودی یک عدد n آمده است که نمایانگر تعداد حروف کلمات است.
در سطر دوم یک رشته متشکل از حروف کوچک و بزرگ انگلیسی آمدهاست که نمایانگر کلمهی گذاشتهشده جلوی هنرجوست.
در سطر دوم نیز یک رشته متشکل از حروف کوچک و بزرگ انگلیسی آمدهاست که نمایانگر کلمهی نوشته شده توسط هنرجوست.
1 <= n <= 100000
تنها سطر خروجی باید شامل یک عدد صحیح نامنفی باشد که برابر تعداد حروفیست که هنرجو اشتباه نوشته است.
3
ABC
aBD
2
21
MASIOJESTDYSLEKTYKIEM
MAsIOJSSTDXSIEKTYKLEM
5