# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
775612 | Essa2006 | 운세 보기 2 (JOI14_fortune_telling2) | C++14 | 3054 ms | 13692 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define endl '\n'
#define FF first
#define SS second
#define all(a) a.begin(), a.end()
#define mod (ll)(1000000007)
int n, k;
vector<int>A, B, T;
map<int, int>mp, inv;
void pre(){
A.clear(), B.clear(), T.clear(), mp.clear(), inv.clear();
A.resize(n), B.resize(n), T.resize(k);
}
void comp(){
vector<int>S=T;
for(int i=0;i<n;i++){
S.push_back(A[i]);
S.push_back(B[i]);
}
sort(all(S));
int cnt=1;
for(int i=0;i<S.size();i++){
if(!i || S[i]!=S[i-1]){
mp[S[i]]=cnt, inv[cnt]=S[i], cnt++;
컴파일 시 표준 에러 (stderr) 메시지
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |