Submission #948499

#TimeUsernameProblemLanguageResultExecution timeMemory
948499irmuunBoxes with souvenirs (IOI15_boxes)C++17
10 / 100
1 ms360 KiB
#include<bits/stdc++.h> using namespace std; #define ll long long #define pb push_back #define ff first #define ss second #define all(s) s.begin(),s.end() #define rall(s) s.rbegin(),s.rend() ll delivery(int N,int K,int L,int pos[]){ ll ans=0; for(int i=0;i<N;i++){ ans+=min(pos[i],L-pos[i])*2; } return ans; }

Compilation message (stderr)

boxes.cpp: In function 'long long int delivery(int, int, int, int*)':
boxes.cpp:12:23: warning: unused parameter 'K' [-Wunused-parameter]
   12 | ll delivery(int N,int K,int L,int pos[]){
      |                   ~~~~^
#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...