# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
679942 | L0RD3N | Football (info1cup20_football) | C++14 | 217 ms | 1976 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 "iostream"
using namespace std;
int t, n, k, v[100005] ;
void solve()
{
long long sum = 0 ;
string winner = "T" ;
cin >> n >> k ;
for (int i = 1 ; i <= n ; i ++)
cin >> v[i] ;
while (k && winner == "T")
{
sum = 0 ;
for (int i = 1 ; i <= n ; i ++)
sum += v[i] ;
if (sum % 2 == 1)
winner = "S" ;
for (int i = 1 ; i <= n ; i ++)
v[i] /= 2 ;
# | 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... |