Submission #380994

#TimeUsernameProblemLanguageResultExecution timeMemory
380994KarliverCluedo (IOI10_cluedo)C++14
100 / 100
14 ms384 KiB
#include "grader.h"
#include "cluedo.h"
#include <bits/stdc++.h>
#include <fstream>
#define FIXED_FLOAT(x)  std::fixed <<std::setprecision(20) << (x)
#define all(v) (v).begin(), (v).end()
using namespace  std;
#define forn(i,n) for (int i = 0; i < (n); ++i)
using ll = long long;
int mod = (ll)1e9 + 7;
#define PI acos(-1)
typedef pair<int, int> pairs;
typedef complex<ll> G;
const int INF = 1e9 + 1;
const int N = 1e6;
const double eps = 1e-3;
 
template <typename XPAX>
void ckma(XPAX &x, XPAX y) {
    x = (x < y ? y : x);
}
template <typename XPAX>
void ckmi(XPAX &x, XPAX y) {
    x = (x > y ? y : x);
}
 
void Solve(){
	int a = 1, b =1, c =1;
   	int r = Theory(a, b, c);
    while(r) {
    	if(r == 1)++a;
        else if(r == 2)++b;
        else ++c;
       	r = Theory(a, b,c);
       }
     	
}
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...