提出 #52840667
ソースコード 拡げる
// #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;
}
提出情報
| 提出日時 | |
|---|---|
| 問題 | B - Spot the Difference |
| ユーザ | TopCloser |
| 言語 | C++ 20 (gcc 12.2) |
| 得点 | 150 |
| コード長 | 781 Byte |
| 結果 | AC |
| 実行時間 | 1 ms |
| メモリ | 3620 KiB |
ジャッジ結果
| セット名 | Sample | All | ||||
|---|---|---|---|---|---|---|
| 得点 / 配点 | 0 / 0 | 150 / 150 | ||||
| 結果 |
|
|
| セット名 | テストケース |
|---|---|
| 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 |
| ケース名 | 結果 | 実行時間 | メモリ |
|---|---|---|---|
| 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 |