# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
444469 | blue | Lamps (JOI19_lamps) | C++17 | 725 ms | 6292 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 <iostream>
#include <vector>
using namespace std;
/*
States:
0 nothing
1 on
2 off
3 toggle
4 on + off
5 on + toggle
6 off + on
7 off + toggle
8 toggle + on
9 toggle + off
*/
const int off = 0;
const int on = 1;
const int toggle = 2;
string s[3] = {"OFF", "ON", "TOGGLE"};
int op_res(int a, int b)
{
if(b == off) return 0;
else if(b == on) return 1;
else return !a;
# | 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... |