# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
161404 | 2019-11-02T08:43:32 Z | georgerapeanu | Party (POI11_imp) | C++11 | 1275 ms | 17400 KB |
#include <cstdio> using namespace std; const int NMAX = 3000; int n,m; bool adj[NMAX + 5][NMAX + 5]; bool del[NMAX + 5]; int main(){ scanf("%d %d",&n,&m); for(int i = 1;i <= m;i++){ int x,y; scanf("%d %d",&x,&y); adj[x][y] = true; adj[y][x] = true;; } for(int i = 1;i <= n;i++){ if(del[i] == true){ continue; } for(int j = i + 1;j <= n;j++){ if(del[j] == true){ continue; } if(adj[i][j] == false){ del[i] = del[j] = true; } } } for(int i = 1,cnt = 0;i <= n,cnt < n / 3;i++){ if(del[i] == false){ printf("%d ",i); cnt++; } } return 0; }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 2 ms | 376 KB | Output is correct |
2 | Correct | 2 ms | 504 KB | Output is correct |
3 | Correct | 3 ms | 632 KB | Output is correct |
4 | Correct | 3 ms | 632 KB | Output is correct |
5 | Correct | 3 ms | 632 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 5 ms | 888 KB | Output is correct |
2 | Incorrect | 24 ms | 2424 KB | Wypisano numer osoby spoza zakresu [1;n] |
3 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 14 ms | 1528 KB | Output is correct |
2 | Incorrect | 100 ms | 6200 KB | Wypisano numer osoby spoza zakresu [1;n] |
3 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 31 ms | 2040 KB | Output is correct |
2 | Incorrect | 244 ms | 10060 KB | Wypisano numer osoby spoza zakresu [1;n] |
3 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 68 ms | 2936 KB | Wypisano numer osoby spoza zakresu [1;n] |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 225 ms | 4756 KB | Wypisano numer osoby spoza zakresu [1;n] |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 443 ms | 6236 KB | Output is correct |
2 | Incorrect | 693 ms | 17400 KB | Wypisano numer osoby spoza zakresu [1;n] |
3 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 586 ms | 7032 KB | Output is correct |
2 | Incorrect | 824 ms | 11372 KB | Wypisano numer osoby spoza zakresu [1;n] |
3 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 719 ms | 7700 KB | Wypisano numer osoby spoza zakresu [1;n] |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 900 ms | 8284 KB | Output is correct |
2 | Incorrect | 1150 ms | 13432 KB | Wypisano numer osoby spoza zakresu [1;n] |
3 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 1125 ms | 9080 KB | Output is correct |
2 | Incorrect | 1275 ms | 13688 KB | Wypisano numer osoby spoza zakresu [1;n] |
3 | Halted | 0 ms | 0 KB | - |