Submission #52855085
Source Code Expand
Copy
#include <bits/stdc++.h>using namespace std;typedef long long ll;ll n,x,y;char a[110][110], b[110][110];int main(){ios::sync_with_stdio(false), cin.tie(0), cout.tie(0);cin >> n;for (int i = 1; i <= n; i++)for (int j = 1; j <= n; j++)cin >> a[i][j];bool flag = false;for (int i = 1; i <= n; i++){for (int j = 1; j <= n; j++){cin >> b[i][j];if (b[i][j] != a[i][j]){
#include <bits/stdc++.h> using namespace std; typedef long long ll; ll n,x,y; char a[110][110], b[110][110]; int main() { ios::sync_with_stdio(false), cin.tie(0), cout.tie(0); cin >> n; for (int i = 1; i <= n; i++) for (int j = 1; j <= n; j++) cin >> a[i][j]; bool flag = false; for (int i = 1; i <= n; i++) { for (int j = 1; j <= n; j++) { cin >> b[i][j]; if (b[i][j] != a[i][j]) { x = i; y = j; } } } cout << x << " " << y << endl; return 0; }
Submission Info
Submission Time | |
---|---|
Task | B - Spot the Difference |
User | icon_zzz |
Language | C++ 20 (gcc 12.2) |
Score | 150 |
Code Size | 520 Byte |
Status | AC |
Exec Time | 1 ms |
Memory | 3596 KB |
Compile Error
Main.cpp: In function ‘int main()’: Main.cpp:14:14: warning: unused variable ‘flag’ [-Wunused-variable] 14 | bool flag = false; | ^~~~
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 | 3496 KB |
00_sample_01.txt | AC | 1 ms | 3584 KB |
00_sample_02.txt | AC | 1 ms | 3512 KB |
01_random_00.txt | AC | 1 ms | 3412 KB |
01_random_01.txt | AC | 1 ms | 3460 KB |
01_random_02.txt | AC | 1 ms | 3464 KB |
01_random_03.txt | AC | 1 ms | 3496 KB |
01_random_04.txt | AC | 1 ms | 3592 KB |
01_random_05.txt | AC | 1 ms | 3492 KB |
01_random_06.txt | AC | 1 ms | 3596 KB |
01_random_07.txt | AC | 1 ms | 3460 KB |