Submission #1362610

#TimeUsernameProblemLanguageResultExecution timeMemory
1362610opeleklanosMagic Show (APIO24_show)C++20
5 / 100
2 ms1092 KiB
#include <iostream>
#include <vector>
using namespace std;

#include "Alice.h"

#define ll long long

vector<pair<int, int>> Alice(){
    ll x = setN(5000);
    vector<pair<int, int>> ans;
    for(ll i = 1; i<=5000; i++){
        if(i!=x) ans.push_back({x, i});
    }
    return ans;
}
#include <iostream>
#include <vector>
using namespace std;

#include "Bob.h"

#define ll long long

long long Bob(vector<pair<int, int>> edges){
    ll a = edges[0].first;
    ll b = edges[0].second;
    ll c = edges[1].first;
    ll d = edges[1].second;
    if(a == c) return a;
    if(b == c) return b;
    if(a == d) return a;
    if(b == d) return b;
}

Compilation message (stderr)

# 2번째 컴파일 단계

Bob.cpp: In function 'long long int Bob(std::vector<std::pair<int, int> >)':
Bob.cpp:18:1: warning: control reaches end of non-void function [-Wreturn-type]
   18 | }
      | ^
#Result Execution timeMemoryGrader output
Fetching results...
#Result Execution timeMemoryGrader output
Fetching results...
#Result Execution timeMemoryGrader output
Fetching results...