Submission #52849951
Source Code Expand
#include <stdio.h>
int main(){
int N;
scanf("%d", &N);
char A[N+1][N+1], B[N+1][N+1];
for(int i = 1; i <= N ;i++){
scanf("%s", A[i]);
}
for(int i = 1; i <= N ;i++){
scanf("%s", B[i]);
for(int j = 0; j < N; j++){
if(A[i][j] != B[i][j]){
printf("%d %d\n", i, j+1);
return 0;
}
}
}
return 0;
}
Submission Info
| Submission Time | |
|---|---|
| Task | B - Spot the Difference |
| User | oinucha |
| Language | C (gcc 12.2.0) |
| Score | 150 |
| Code Size | 430 Byte |
| Status | AC |
| Exec Time | 1 ms |
| Memory | 1720 KiB |
Compile Error
Main.c: In function ‘main’:
Main.c:5:5: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
5 | scanf("%d", &N);
| ^~~~~~~~~~~~~~~
Main.c:8:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
8 | scanf("%s", A[i]);
| ^~~~~~~~~~~~~~~~~
Main.c:11:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
11 | scanf("%s", B[i]);
| ^~~~~~~~~~~~~~~~~
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 150 / 150 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt |
| All | 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt, 01_random_00.txt, 01_random_01.txt, 01_random_02.txt, 01_random_03.txt, 01_random_04.txt, 01_random_05.txt, 01_random_06.txt, 01_random_07.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| 00_sample_00.txt | AC | 1 ms | 1636 KiB |
| 00_sample_01.txt | AC | 0 ms | 1704 KiB |
| 00_sample_02.txt | AC | 0 ms | 1708 KiB |
| 01_random_00.txt | AC | 0 ms | 1704 KiB |
| 01_random_01.txt | AC | 0 ms | 1716 KiB |
| 01_random_02.txt | AC | 0 ms | 1608 KiB |
| 01_random_03.txt | AC | 1 ms | 1624 KiB |
| 01_random_04.txt | AC | 1 ms | 1720 KiB |
| 01_random_05.txt | AC | 0 ms | 1564 KiB |
| 01_random_06.txt | AC | 1 ms | 1720 KiB |
| 01_random_07.txt | AC | 1 ms | 1712 KiB |