# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
104292 | leonarda | Pohlepko (COCI16_pohlepko) | C++14 | 1080 ms | 43624 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include<bits/stdc++.h>
using namespace std;
#define pb push_back
#define mp make_pair
#define ff first
#define ss second
typedef pair<int, int> pi;
typedef long long int lint;
const int inf = 0x3f3f3f3f;
const int maxn = 2000 + 5;
int n, m;
char a[maxn][maxn];
char dp[maxn][maxn];
pair<int, int> src[maxn][maxn];
string rjesenje;
pair<char, char> fuki(int x1, int y1, int x2, int y2) {
while(a[x1][y1] == a[x2][y2]) {
tie(x1, y1) = src[x1][y1];
tie(x2, y2) = src[x2][y2];
if(x1 == -1 or x2 == -1)
return mp(0, 0);
}
return mp(a[x1][y1], a[x2][y2]);
}
int main ()
{
ios::sync_with_stdio(0);
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |