Submission #64692683
Source Code Expand
#include <stdio.h>
int N;
char S[114514];
char T[114514];
int main(void) {
int i;
int ans = 0;
if (scanf("%d", &N) != 1) return 1;
if (scanf("%114513s", S) != 1) return 1;
if (scanf("%114513s", T) != 1) return 1;
for (i = 0; S[i] != '\0'; i++) {
ans += S[i] != T[i];
}
printf("%d\n", ans);
return 0;
}
Submission Info
| Submission Time | |
|---|---|
| Task | A - Hamming Distance |
| User | mikecat |
| Language | C (gcc 12.2.0) |
| Score | 100 |
| Code Size | 333 Byte |
| Status | AC |
| Exec Time | 1 ms |
| Memory | 1716 KiB |
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 | 0 ms | 1688 KiB |
| 00_sample_01.txt | AC | 0 ms | 1608 KiB |
| 00_sample_02.txt | AC | 0 ms | 1648 KiB |
| 00_sample_03.txt | AC | 0 ms | 1580 KiB |
| 01_random_00.txt | AC | 1 ms | 1628 KiB |
| 01_random_01.txt | AC | 0 ms | 1628 KiB |
| 01_random_02.txt | AC | 0 ms | 1676 KiB |
| 02_random2_00.txt | AC | 0 ms | 1696 KiB |
| 02_random2_01.txt | AC | 0 ms | 1628 KiB |
| 02_random2_02.txt | AC | 0 ms | 1712 KiB |
| 02_random2_03.txt | AC | 0 ms | 1652 KiB |
| 02_random2_04.txt | AC | 0 ms | 1624 KiB |
| 02_random2_05.txt | AC | 0 ms | 1580 KiB |
| 02_random2_06.txt | AC | 0 ms | 1696 KiB |
| 02_random2_07.txt | AC | 0 ms | 1592 KiB |
| 03_handmade_00.txt | AC | 0 ms | 1704 KiB |
| 03_handmade_01.txt | AC | 0 ms | 1716 KiB |