#include "grader.h"
#include "lang.h"
#include <bits/stdc++.h>
using namespace std;
// macros
typedef long long ll;
typedef long double ld;
typedef pair<int, int> ii;
typedef pair<ll, ll> lll;
typedef tuple<int, int, int> iii;
typedef vector<int> vi;
typedef vector<ii> vii;
typedef vector<iii> viii;
typedef vector<ll> vll;
typedef vector<lll> vlll;
#define REP(a,b,c) for(int a=int(b); a<int(c); a++)
#define RE(a,c) REP(a,0,c)
#define RE1(a,c) REP(a,1,c+1)
#define REI(a,b,c) REP(a,b,c+1)
#define REV(a,b,c) for(int a=int(c-1); a>=int(b); a--)
#define FOR(a,b) for(auto& a : b)
#define all(a) a.begin(), a.end()
#define INF 1e9
#define EPS 1e-9
#define pb push_back
#define popb pop_back
#define fi first
#define se second
#define sz size()
mt19937_64 rng(chrono::steady_clock::now().time_since_epoch().count());
const int MX = 894;
double mp[56][MX][MX];
double cnt[56];
set<int> possible;
int h(int x) {
return x%MX;
}
void excerpt(int *E) {
static bool first = true;
/*if(first) {
RE(i,56) RE(j,MX) RE(k,MX) mp[i][j][k] = 0.0;
RE(i,56) cnt[i] = 0.0;
first = false;
}*/
int asking = 0; double best = 0.0;
/*FOR(j,possible) {
double cur = 0.0;
RE(i,99) cur += mp[j][h(E[i])][h(E[i+1])] / cnt[j];
if(cur > best) best = cur, asking = j;
}*/
int res = language(asking);
//possible.insert(res);
//RE(i,99) mp[res][h(E[i])][h(E[i+1])] += 1.0;
//cnt[res] += 1.0;
}
Compilation message
lang.cpp: In function 'void excerpt(int*)':
lang.cpp:44:17: warning: unused variable 'first' [-Wunused-variable]
44 | static bool first = true;
| ^~~~~
lang.cpp:51:28: warning: unused variable 'best' [-Wunused-variable]
51 | int asking = 0; double best = 0.0;
| ^~~~
lang.cpp:58:9: warning: unused variable 'res' [-Wunused-variable]
58 | int res = language(asking);
| ^~~
lang.cpp: At global scope:
lang.cpp:44:17: warning: 'first' defined but not used [-Wunused-variable]
44 | static bool first = true;
| ^~~~~
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
130 ms |
3744 KB |
Output isn't correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
132 ms |
3744 KB |
Output isn't correct - 1.91% |