Submission #1095223

#TimeUsernameProblemLanguageResultExecution timeMemory
1095223RequiemJob Scheduling (IOI19_job)C++17
0 / 100
1 ms348 KiB
#include "job.h" #include<bits/stdc++.h> //#define int long long #define ll long long #define pb push_back #define fast ios_base::sync_with_stdio(false), cin.tie(nullptr), cout.tie(nullptr); #define MOD 1000000007 #define inf 1e18 #define fi first #define se second #define FOR(i,a,b) for(int i=a;i<=b;i++) #define FORD(i,a,b) for(int i=a;i>=b;i--) #define sz(a) ((int)(a).size()) #define endl '\n' #define pi 3.14159265359 #define TASKNAME "jobscheduling" using namespace std; template<typename T> bool maximize(T &res, const T &val) { if (res < val){ res = val; return true; }; return false; } template<typename T> bool minimize(T &res, const T &val) { if (res > val){ res = val; return true; }; return false; } typedef pair<int,int> ii; typedef pair<int,ii> iii; typedef vector<int> vi; /** Cho 1 cây n đỉnh: Cv i có parent là pi. Cv i hoàn thành ở thời gian i có cost là t * u[i]. Cv i có thời gian hoàn thành là di. Sắp xếp các cv sao cho các công việc pi luôn đứng trước i (trừ thằng 1). **/ long long scheduling_cost(vector<int> p, vector<int> u, vector<int> d){ int n = p.size(); return 0; } /** Warning: Cận lmao Code imple thiếu case nào không. Limit. **/

Compilation message (stderr)

job.cpp: In function 'long long int scheduling_cost(std::vector<int>, std::vector<int>, std::vector<int>)':
job.cpp:35:9: warning: unused variable 'n' [-Wunused-variable]
   35 |     int n = p.size();
      |         ^
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...