# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
619519 | Icebear16 | Memory (IOI10_memory) | C++14 | 12 ms | 208 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 "grader.h"
#include "memory.h"
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define INF 1e18//change to const int INF=1e18 if causing problem
const ll MOD=998244353;
const ll alt=1e10;
const ll inf=1e9+7;//Precalc is not a bad idea
//#define int ll
#define pb push_back
#define pf push_front
#define mp make_pair
#define fi first
#define se second
#define mod(a) (a+inf)%inf
#define all(a) a.begin(),a.end()
#define rall(a) a.rbegin(),a.rend()
#define sz(a) a.size()
void play() {
int i;
char a, b;
vector<int> v;
v.clear();
for(int i=1;i<=50;i++){
v.pb(i);
}
while(!v.empty()){
char a,b;
int y;
for(int i=1;i<sz(v);i++){
a=faceup(v[0]);
b=faceup(v[i]);
if(a==b){
y=i;
}
}
v.erase(v.begin()+i);
v.erase(v.begin());
}
}
//Icebear16
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |