# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
5880 | kriii | JOIOJI (JOI14_joioji) | C++98 | 360 ms | 4176 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 <stdio.h>
#include <map>
using namespace std;
struct str
{
str(int j_, int o_, int i_){
j = j_; o = o_; i = i_;
}
int j,o,i;
bool operator <(const str& a) const{
if (j != a.j) return j < a.j;
if (o != a.o) return o < a.o;
if (i != a.i) return i < a.i;
return false;
}
};
int N,L; char S[200020];
void go(int l, int r)
{
if (r - l < 2) return;
int m = (l + r) / 2;
go(l,m); go(m+1,r);
int j=0,o=0,i=0;
map<str, int> chk;
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |