# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
254580 | maximath_1 | Cards (LMIO19_korteles) | C++11 | 116 ms | 19352 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.
/*
* LMIO 2019 Cards
* Main Idea : Inclusion Exclusion
* Explanations are in the code
*/
#include <iostream>
#include <vector>
#include <string>
using namespace std;
#define ll long long
ll ans;
ll up[26 * 26 + 5], dn[26 * 26 + 5], lf[26 * 26 + 5], rg[26 * 26 + 5];
int oc[(26 * 26 + 5) * (26 * 26 + 5)];
int hash2(int a, int b){return 26 * a + b;}
int hash4(int a, int b, int c, int d){
return 26 * 26 * 26 * a + 26 * 26 * b + 26 * c + d;
}
int n;
vector<string> v;
int main(){
ios_base::sync_with_stdio(0);
cin.tie(0); cout.tie(0);
cin >> n;
for(int i = 0; i < n; i ++){
string a, b;
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |