# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
37674 | wasyl | Deda (COCI17_deda) | C++11 | 416 ms | 14100 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <set>
#include <vector>
#include <cstdio>
#include <climits>
#include <algorithm>
#define d(...) __VA_ARGS__
#define all(x) (x).begin(), (x).end()
#define eb(...) emplace_back(__VA_ARGS__)
using namespace std;using ll=long long;
template<class t>using V = vector< t >;
struct Ev
{
bool typ;
int nr, val, id;
Ev( bool typ, int nr, int val, int id ) :
typ( typ ), nr( nr ), val( val ), id( id ) {}
};
inline bool operator< ( const Ev& mn, const Ev& wc )
{
return mn.val == wc.val?( mn.nr == wc.nr?
mn.typ < wc.typ : mn.nr > wc.nr ) : mn.val < wc.val;
}
int n, q;
V< Ev > evs;
V< int > odp;
void foo ( int l, int p )
컴파일 시 표준 에러 (stderr) 메시지
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |