제출 #304447

#제출 시각아이디문제언어결과실행 시간메모리
304447Jarif_Rahman카니발 티켓 (IOI20_tickets)C++17
0 / 100
1 ms256 KiB
#include "tickets.h" #include <bits/stdc++.h> #define pb push_back #define f first #define sc second using namespace std; typedef long long int ll; typedef string str; vector<vector<int>> r; long long find_maximum(int k, vector<vector<int>>rrrr){ r = rrrr; int n = r.size(), m = r[0].size(); vector <ll> v; for(int i = 0; i < n; i++) v.pb(r[i][0]); ll b = v[n/2 - 1]; ll s = 0; for(ll x: v) s+=abs(x - b); allocate_tickets(vector<vector<int>>(n, vector<int>(1, 0))); return s; }

컴파일 시 표준 에러 (stderr) 메시지

tickets.cpp: In function 'long long int find_maximum(int, std::vector<std::vector<int> >)':
tickets.cpp:12:23: warning: unused variable 'm' [-Wunused-variable]
   12 |     int n = r.size(), m = r[0].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...
#Verdict Execution timeMemoryGrader output
Fetching results...