Submission #945885

#TimeUsernameProblemLanguageResultExecution timeMemory
945885Nika533Boxes with souvenirs (IOI15_boxes)C++14
10 / 100
1 ms500 KiB
#pragma GCC diagnostic warning "-std=c++11" #include <bits/stdc++.h> #include "boxes.h" #define pb push_back #define f first #define s second #define MOD 1000000007 #define flush fflush(stdout) #define all(x) (x).begin(),(x).end() #define allr(x) (x).rbegin(), (x).rend() #define pii pair<int,int> using namespace std; int n,m,T,k; long long delivery(int N, int K, int L, int p[]) { long long ans=0; for (int i=0; i<N; i++) { ans+=min(p[i],L-p[i])*2; } return ans; }

Compilation message (stderr)

boxes.cpp:1:32: warning: '-std=c++11' is not an option that controls warnings [-Wpragmas]
    1 | #pragma GCC diagnostic warning "-std=c++11"
      |                                ^~~~~~~~~~~~
boxes.cpp: In function 'long long int delivery(int, int, int, int*)':
boxes.cpp:14:31: warning: unused parameter 'K' [-Wunused-parameter]
   14 | long long delivery(int N, int K, int L, int p[]) {
      |                           ~~~~^
#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...