(UPD: 2024-12-04 14:48 UTC) Judge is not working due to Cloudflare incident. (URL) We can do nothing about it, sorry. After the incident is resolved, we will grade all submissions.

Submission #419917

#TimeUsernameProblemLanguageResultExecution timeMemory
419917Rahat_Khan_PathanMemory (IOI10_memory)C++17
100 / 100
3 ms328 KiB
/* ||-----------------------------------|| || Rahat Khan Pathan || || BGC Trust University || || Department of CSE || ||-----------------------------------|| */ #include<bits/stdc++.h> #include "grader.h" #include "memory.h" #define ll long long int #define pub push_back #define PI 3.14159265359 #define vll vector<ll> #define All(X) (X).begin(),(X).end() #define Unique(X) (X).erase(unique(All(X)),(X).end())) #define fast ios_base::sync_with_stdio(0); cin.tie(0); #define pi pair<ll,ll> #define vpair vector<pair<ll,ll> > #define yes cout<<"YES"<<endl #define no cout<<"NO"<<endl #define minus cout<<-1<<endl using namespace std; void play() { ll i; bool found[52]; memset(found,false,sizeof(found)); ll pos[27]; memset(pos,-1,sizeof(pos)); char c; for(i=1;i<=50;i++) { c=faceup(i); if(pos[c-'A']==-1) { pos[c-'A']=i; found[i]=true; } } for(i=1;i<=50;i++) { if(found[i]) continue; c=faceup(i); c=faceup(pos[c-'A']); } }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...