# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
797456 | Sami_Massah | Bitaro’s Party (JOI18_bitaro) | C++17 | 768 ms | 150412 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
const int maxn = 200000 + 12, sq = 100;
int n, m, dp[maxn], best[maxn];
vector <int> bconn[maxn], now;
vector <pair<int, int>> pos[maxn];
bitset <maxn> marked;
int main(){
ios_base::sync_with_stdio(false), cin.tie(0);
int q;
cin >> n >> m >> q;
for(int i = 0; i < m; i++){
int a, b;
cin >> a >> b;
bconn[b].push_back(a);
}
for(int i = 1; i <= n; i++){
pos[i].push_back(make_pair(0, i));
marked = 0;
for(int j: bconn[i]){
for(auto q: pos[j]){
best[q.second] = max(best[q.second], q.first + 1);
marked[q.second] = 1;
}
}
for(int j: bconn[i])
컴파일 시 표준 에러 (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... |