Submission #52847796


Source Code Expand

#include <bits/stdc++.h>
#include <atcoder/all>
#include <boost/multiprecision/cpp_int.hpp>

using namespace std;
using namespace atcoder;
namespace mp = boost::multiprecision;

using ll = long long;
using ull = unsigned long long;
using pll = pair<ll,ll>;
using bint = mp::cpp_int;

int main()
{
  ll N;
  cin >> N;
  vector<string> A(N);
  vector<string> B(N);

  for(ll i = 0; i < N;i++)
  {
    cin >> A[i];
  }  
  for(ll i = 0; i < N;i++)
  {
    cin >> B[i];
  }  
  ll ansi = -1;
  ll ansj = -1;
  for(ll i = 0; i < N;i++)
  {
    for(ll j = 0; j < N;j++)
    {
      if(A[i][j] != B[i][j])
      {
        ansi = i;
        ansj = j;
      }
    }
  }  
  cout << ansi+1 << " " << ansj+1 << endl;

  return 0;
}

Submission Info

Submission Time
Task B - Spot the Difference
User n0dasalt
Language C++ 20 (gcc 12.2)
Score 150
Code Size 764 Byte
Status AC
Exec Time 2 ms
Memory 3600 KiB

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 2 ms 3580 KiB
00_sample_01.txt AC 1 ms 3496 KiB
00_sample_02.txt AC 1 ms 3492 KiB
01_random_00.txt AC 1 ms 3528 KiB
01_random_01.txt AC 1 ms 3456 KiB
01_random_02.txt AC 1 ms 3532 KiB
01_random_03.txt AC 1 ms 3516 KiB
01_random_04.txt AC 1 ms 3548 KiB
01_random_05.txt AC 1 ms 3592 KiB
01_random_06.txt AC 1 ms 3588 KiB
01_random_07.txt AC 1 ms 3600 KiB