| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1368339 | hahaha | Data Centers (EGOI22_datacenters) | C++20 | 2094 ms | 1496 KiB |
#include <bits/stdc++.h>
using namespace std;
#define int long long
#define ff first
#define ss second
#define pb push_back
const int N=1e5+7;
int n,s,m,c;
vector<int> com;
signed main(){
cin>>n>>s;
for(int i=0; i<n; i++){
int x;
cin>>x;
com.pb(x);
}
sort(com.begin(), com.end(), greater<int>());
while(s--){
int m,c;
cin>>m>>c;
for(int i=0; i<c; i++){
com[i]-=m;
}
sort(com.begin(), com.end(), greater<int>());
}
for(auto i: com)
cout<<i<<" ";
cout<<endl;
}| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
