Submission #52849245


Source Code Expand

Copy
#include<iostream>
using namespace std;
int main(){
int N;
string A[109],B[109];
cin>>N;
for(int i=1;i<=N;i++) cin>>A[i];
for(int i=1;i<=N;i++) cin>>B[i];
for(int i=1;i<=N;i++){
for(int j=0;j<N;j++){
if(A[i][j]!=B[i][j]){
cout<<i<<" "<<j+1;
return 0;
}
}
}
}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
#include<iostream>
using namespace std;
int main(){
  int N;
  string A[109],B[109];
  cin>>N;
  for(int i=1;i<=N;i++) cin>>A[i];
  for(int i=1;i<=N;i++) cin>>B[i];
  for(int i=1;i<=N;i++){
    for(int j=0;j<N;j++){
      if(A[i][j]!=B[i][j]){
        cout<<i<<" "<<j+1;
        return 0;
      }
    }
  }
}

Submission Info

Submission Time
Task B - Spot the Difference
User kei1231212
Language C++ 20 (gcc 12.2)
Score 150
Code Size 324 Byte
Status AC
Exec Time 1 ms
Memory 3604 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 150 / 150
Status
AC × 3
AC × 11
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 3524 KB
00_sample_01.txt AC 1 ms 3464 KB
00_sample_02.txt AC 1 ms 3468 KB
01_random_00.txt AC 1 ms 3572 KB
01_random_01.txt AC 1 ms 3468 KB
01_random_02.txt AC 1 ms 3556 KB
01_random_03.txt AC 1 ms 3472 KB
01_random_04.txt AC 1 ms 3500 KB
01_random_05.txt AC 1 ms 3552 KB
01_random_06.txt AC 1 ms 3604 KB
01_random_07.txt AC 1 ms 3476 KB


2025-04-04 (Fri)
05:57:20 +00:00