Submission #52840667


Source Code Expand

// #pragma GCC optimize("Ofast,unroll-loops")
#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define inf (ll)1e18
#define pll pair<ll, ll>
#define vi vector<int>
#define vl vector<ll>
#define fi first
#define se second
#define lll __int128
const int N = 105;
char a[N][N], b[N][N];
void solve() {
	ll n;
	cin >> n;
	for (ll i = 1; i <= n; i++)
		for (ll j = 1; j <= n; j++)
			cin >> a[i][j];
	for (ll i = 1; i <= n; i++)
		for (ll j = 1; j <= n; j++)
			cin >> b[i][j];
	for (ll i = 1; i <= n; i++) {
		for (ll j = 1; j <= n; j++) {
			if (a[i][j] != b[i][j]) {
				cout <<i << " " << j << endl;
				return;
			}
		}
	}
}

int main() {
	ios::sync_with_stdio(false);
  	cin.tie(0);
  	cout.tie(0);
	solve();
	return 0;
}

Submission Info

Submission Time
Task B - Spot the Difference
User TopCloser
Language C++ 20 (gcc 12.2)
Score 150
Code Size 781 Byte
Status AC
Exec Time 1 ms
Memory 3620 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 1 ms 3476 KiB
00_sample_01.txt AC 1 ms 3476 KiB
00_sample_02.txt AC 1 ms 3476 KiB
01_random_00.txt AC 1 ms 3396 KiB
01_random_01.txt AC 1 ms 3496 KiB
01_random_02.txt AC 1 ms 3428 KiB
01_random_03.txt AC 1 ms 3468 KiB
01_random_04.txt AC 1 ms 3552 KiB
01_random_05.txt AC 1 ms 3620 KiB
01_random_06.txt AC 1 ms 3436 KiB
01_random_07.txt AC 1 ms 3488 KiB