# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
254077 | Markoes | Cards (LMIO19_korteles) | C++14 | 153 ms | 19576 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;
int n,c[4],atas,bawah,kanan,kiri;
char cc;
long long satu,kdua,dua,kempat,empat,up[680],dn[680],le[680],ri[680],cas[6][680][680];
bool cek[30][30];
int main(){
ios_base::sync_with_stdio(NULL);
cin.tie(0);cout.tie(0);
cin>>n;
memset(up,0,sizeof up);
memset(dn,0,sizeof dn);
memset(le,0,sizeof le);
memset(ri,0,sizeof ri);
satu = 0;
dua = 0;
empat = 0;
memset(cek,0,sizeof cek);
for(int i=1;i<=n;i++){
for(int j=0;j<4;j++){
cin>>cc;
c[j] = (int)(cc-'A');
}
if(c[0] == c[3] && c[1] == c[2] && c[0] == c[1]){
kempat++;
}
else if(c[0] == c[1] && c[2] == c[3]) kdua++;
else if(c[0] == c[2] && c[1] == c[3]) kdua++;
else if(c[0] == c[3] && c[1] == c[2]){
# | 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... |