제출 #651000

#제출 시각UTC-0아이디문제언어결과실행 시간메모리
6510002022-10-16 10:33:10MilosMilutinovic저울 (IOI15_scales)C++14
100 / 100
31 ms992 KiB
/**
* author: wxhtzdy
* created: 05.07.2022 11:10:33
**/
#include "scales.h"
#include <bits/stdc++.h>
using namespace std;
const int N = 15000;
int root, ch[N][3], tsz;
struct query {
int type, a, b, c, d;
bool operator <(query p) const {
return type > p.type;
}
};
vector<query> queries;
query qq[N];
int Solve(query q, vector<int> p) {
assert((int) p.size() == 6);
assert(q.a >= 0 && q.a < 6);
assert(q.b >= 0 && q.b < 6);
assert(q.c >= 0 && q.c < 6);
assert(q.d >= 0 && q.d < 6);
if (q.type == 1) {
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

컴파일 시 표준 에러 (stderr) 메시지

scales.cpp: In function 'bool build(int&, std::vector<std::vector<int> >, int)':
scales.cpp:130:25: warning: conversion from 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} to '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'} may change value [-Wconversion]
  130 |       sz[i] = go[i].size();
      |               ~~~~~~~~~~^~
scales.cpp: In function 'void init(int)':
scales.cpp:157:15: warning: unused parameter 'tt' [-Wunused-parameter]
  157 | void init(int tt) {
      |           ~~~~^~
#Verdict Execution timeMemoryGrader output
Fetching results...