# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
69862 | FLDutchman | Art Class (IOI13_artclass) | C++14 | 131 ms | 66560 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 "artclass.h"
#include <bits/stdc++.h>
using namespace std;
typedef int INT;
#define FOR(i,l,r) for(int i = (l); i < (r); i++)
#define fst first
#define snd second
#define pb push_back
#define mp make_pair
#define V vector
#define int long long
typedef vector<int> vi;
typedef pair<int, int> ii;
typedef vector<vi> vvi;
typedef vector<ii> vii;
const int NMAX = 1e5+10;
double sqr(double x) {return x * x;}
struct color{
double r, g, b;
double l;
color (){}
color (int r, int g, int b) : r(r), g(g), b(b) {l = sqrt(r*r + g*g + b*b); l = l == 0 ? 1 : l;}
int operator- (const color &c) {
//cerr<<r/l<<endl;
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |