Submission #64277331
Source Code Expand
Copy
n = int(input())s = input()t = input()print(sum((s[i] != t[i] for i in range(n))))
n = int(input()) s = input() t = input() print(sum((s[i] != t[i] for i in range(n))))
Submission Info
Submission Time | |
---|---|
Task | A - Hamming Distance |
User | iis914 |
Language | Python (CPython 3.11.4) |
Score | 100 |
Code Size | 90 Byte |
Status | AC |
Exec Time | 10 ms |
Memory | 8600 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 100 / 100 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt, 00_sample_03.txt |
All | 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt, 00_sample_03.txt, 01_random_00.txt, 01_random_01.txt, 01_random_02.txt, 02_random2_00.txt, 02_random2_01.txt, 02_random2_02.txt, 02_random2_03.txt, 02_random2_04.txt, 02_random2_05.txt, 02_random2_06.txt, 02_random2_07.txt, 03_handmade_00.txt, 03_handmade_01.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
00_sample_00.txt | AC | 10 ms | 8488 KB |
00_sample_01.txt | AC | 10 ms | 8500 KB |
00_sample_02.txt | AC | 10 ms | 8552 KB |
00_sample_03.txt | AC | 10 ms | 8488 KB |
01_random_00.txt | AC | 10 ms | 8420 KB |
01_random_01.txt | AC | 10 ms | 8508 KB |
01_random_02.txt | AC | 10 ms | 8600 KB |
02_random2_00.txt | AC | 10 ms | 8500 KB |
02_random2_01.txt | AC | 10 ms | 8528 KB |
02_random2_02.txt | AC | 9 ms | 8456 KB |
02_random2_03.txt | AC | 10 ms | 8528 KB |
02_random2_04.txt | AC | 10 ms | 8508 KB |
02_random2_05.txt | AC | 10 ms | 8452 KB |
02_random2_06.txt | AC | 10 ms | 8464 KB |
02_random2_07.txt | AC | 10 ms | 8588 KB |
03_handmade_00.txt | AC | 10 ms | 8528 KB |
03_handmade_01.txt | AC | 10 ms | 8472 KB |