Problem | 1821 |
---|---|
User | PrunJuice |
Submission Time | 2024-08-14 11:25:30 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
1821.cpp:2:7: error: invalid preprocessing directive #Since
2 | # Since a tree with N nodes normally has N-1 edges, we add one more edge to create a cycle
| ^~~~~
1821.cpp:3:12: error: stray ‘#’ in program
3 | E = N # N edges instead of N-1 to create a cycle
| ^
1821.cpp:6:7: error: invalid preprocessing directive #Create
6 | # Create a basic tree first (linear chain)
| ^~~~~~
1821.cpp:10:7: error: invalid preprocessing directive #Add
10 | # Add an extra edge to create a cycle
| ^~~
1821.cpp:11:27: error: stray ‘#’ in program
11 | edges.append((1, N)) # Connecting the last node back to the first node
| ^
1821.cpp:13:7: error: invalid preprocessing directive #Output
13 | # Output N and E
| ^~~~~~
1821.cpp:18:3: error: invalid preprocessing directive #Example
18 | # Example usage