| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 80887 | farukkastamonuda | 무제 (POI11_kon) | C++14 | 3077 ms | 132096 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
#define fi first
#define se second
#define lo long long
#define inf 1000000000
#define md 1000000007
#define li 5000
#define mp make_pair
#define pb push_back
using namespace std;
int n, deg, x, gg[li], tut[li], topla, cev, edge, sum, last;
int main(){
scanf("%d", &n);
for(int i = 1; i <= n; i ++){
scanf("%d", °);
for(int j = 1 ;j <= deg; j ++){
scanf("%d", &x);
}
topla += deg;
gg[deg] ++;
}
edge = topla / 2;
//int last = 0;
for(int i = n - 1; i >= 0; i --){
for(int j = gg[i]; j >= 1 ; j --){
tut[last ++] = i;
}
}
//int sum = 0;
for(int i = 0; i< n - 1; i ++){
sum = sum + tut[i] - i;
if(sum == edge){
if(tut[i] == tut[i + 1]){
cev += gg[ tut[i] ];
}
else cev += 1;
}
}
printf("%d\n", cev);
return 0;
}
컴파일 시 표준 에러 (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... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
