| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1318916 | dshfjka | Football (info1cup20_football) | C++20 | 20 ms | 552 KiB |
#include <bits/stdc++.h>
#define LL long long
using namespace std;
int main()
{
LL tc;
scanf("%lld",&tc);
while(tc--)
{
LL n,k;
scanf("%lld %lld",&n,&k);
LL arr[n+5];
for(LL a=1;a<=n;a++)
{
scanf("%lld",&arr[a]);
}
bool ans = 1;
while(true){
LL tot = 0;
for(LL a=1;a<=n;a++){
tot+=arr[a];
}
if(tot%2==1){
ans = 1;
break;
}
if(k==1){
ans = 0;
break;
}
if(tot == 0){
ans = 0;
break;
}
for(LL a=1;a<=n;a++){
arr[a]/=2;
}
k/=2;
}
if(ans){
printf("1");
}
else{
printf("0");
}
}
}
컴파일 시 표준 에러 (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... | ||||
