Submission #1077287

#TimeUsernameProblemLanguageResultExecution timeMemory
1077287veehjBroken Device (JOI17_broken_device)C++17
0 / 100
28 ms3024 KiB
#include "Annalib.h" #include <bits/stdc++.h> using namespace std; typedef long long ll; typedef long double ld; #define F first #define S second #define pb push_back #define sz(a) (ll) a.size() #define all(x) (x).begin(), (x).end() void Anna( int N, long long X, int K, int P[] ){ set<int> s={}; for(int i=0; i<K; i++) s.insert(P[i]); for(int i=0; i<N; i++){ if(X && !s.count(i)){ Set(i, 1); X--; } else Set(i, 0); } }
#include "Brunolib.h" #include <bits/stdc++.h> using namespace std; typedef long long ll; typedef long double ld; #define F first #define S second #define pb push_back #define sz(a) (ll) a.size() #define all(x) (x).begin(), (x).end() long long Bruno( int N, int A[] ){ ll ans=0; for(int i=0; i<N; i++) ans+=A[i]; return ans; }
#Verdict Execution timeMemoryGrader output
Fetching results...