| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1338739 | athena | Make them Meet (EGOI24_makethemmeet) | C++20 | 1 ms | 344 KiB |
#include <bits/stdc++.h>
using namespace std;
#define int long long int
int32_t main() {
ios::sync_with_stdio(false);
cin.tie(nullptr);
int n,m;
cin>>n>>m;
for(int i=0;i<n;i++)
{
int x,y;
cin>>x>>y;
}
cout<<3<<endl;
for(int i=0;i<n;i++)
cout<<1<<" ";
cout<<endl;
//set the centre and one node to a diff color
cout<<"0 0 ";
//whoever was at centre is at a node now
for(int i=2;i<n;i++)
cout<<"1 ";
cout<<endl;
for(int i=0;i<n;i++)
cout<<1<<" ";
cout<<endl;
}| # | 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... | ||||
