# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
316323 | CaroLinda | Ice Hockey World Championship (CEOI15_bobek) | C++14 | 403 ms | 20948 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <bits/stdc++.h>
#define all(x) x.begin(),x.end()
#define sz(x) (int)(x.size())
#define ll long long
using namespace std ;
bool isOn(int i, int m) { return ((1<<i)&m) != 0 ; }
int main()
{
int n ;
ll budget ;
scanf("%d %lld", &n, &budget ) ;
vector<ll> vec[2] ;
vec[0].resize( max(n/2,0) ) ;
vec[1].resize( max(n - (n/2) , 0) ) ;
for(int i = 0 ; i < n/2 ; i++ ) scanf("%lld", &vec[0][i]) ;
for(int i = n/2 , j = 0 ; i < n ; i++, j++ ) scanf("%lld", &vec[1][j]) ;
vector<ll> ways[2] ;
long long ans = 0LL ;
for(int i = 0, qtd ; i < 2 ; i++ )
{
qtd = (int)( vec[i].size() ) ;
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |