ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#215071 | #2705. Yet another lights out | N | 0 | 7ms | 1260kb | C++11 | 597b | 2024-11-25 22:57:49 | 2024-11-25 23:13:07 |
answer
//
// na 2705.cpp
// Competitive Programming
//
// Created by m2 on 2024/11/25.
//
#include <stdio.h>
#include <iostream>
using namespace std;
const int maxn = 105;
int n, m;
char mp[maxn][maxn];
bool vis[1 << 24 | 1];
inline void solve(){
cin >> n >> m;
for(int i = 0; i < n; ++i)
cin >> mp[i];
if((n ^ m) & 1)
cout << "Yes" << endl;
else
cout << "No" << endl;
return;
}
int main(){
cin.tie(0)->sync_with_stdio(false);
int t;
cin >> t;
while(t--)
solve();
return 0;
}
详细
小提示:点击横条可展开更详细的信息
Test #1:
score: 0
Wrong Answer
time: 0ms
memory: 1248kb
input:
10 3 4 BBBB BWBW WBBW 3 4 WBWB WBBB WBBW 4 4 BWBB BWWB WWBB WBWB 4 3 WBB BBW BWB WBB 4 3 WBB BWW WWW...
output:
Yes Yes No Yes Yes Yes Yes No No No
result:
wrong answer 1st lines differ - expected: 'No', found: 'Yes'
Test #2:
score: 0
Wrong Answer
time: 0ms
memory: 1248kb
input:
10 4 3 BWB BWW WWB WBW 3 3 BBW WBW BBW 3 4 WBWB BBWB BBWW 3 3 WBW BWW BWW 4 4 WWBB BWWB BWWB BBBW 3 ...
output:
Yes No Yes No No Yes No No No No
result:
wrong answer 1st lines differ - expected: 'No', found: 'Yes'
Test #3:
score: 0
Wrong Answer
time: 0ms
memory: 1252kb
input:
10 3 3 WBB BWW BBW 4 3 WBB BWW BBB WBW 4 4 BWWB WWWB WBBB WBBB 4 4 WBWB WBBB WBBB WBBW 3 3 WBW BBB B...
output:
No Yes No No No Yes Yes No No Yes
result:
wrong answer 2nd lines differ - expected: 'No', found: 'Yes'
Test #4:
score: 0
Wrong Answer
time: 0ms
memory: 1252kb
input:
10 3 3 BWB WWW BBB 4 3 BWW BWW BBB WBW 4 4 BWBW BWWW BBWW WWWW 3 3 BBB BBB BWW 4 3 WBB WBW BWW WBB 3...
output:
No Yes No No Yes No Yes No No No
result:
wrong answer 3rd lines differ - expected: 'Yes', found: 'No'
Test #5:
score: 0
Wrong Answer
time: 0ms
memory: 1248kb
input:
10 15 14 WWWWWWWWBBWBWW WWBWWBWBWWWWWB WBWWBBWWBBBBBB WBBWBWWBWWBWWB WBBBBBBWBBWWBW BWBWWWBBWBBWWW B...
output:
Yes Yes No No Yes No Yes Yes Yes Yes
result:
wrong answer 1st lines differ - expected: 'No', found: 'Yes'
Test #6:
score: 0
Wrong Answer
time: 0ms
memory: 1248kb
input:
10 15 15 BBBWBWWWWBWBWWW BBBBWBWBBBBWWWB BBBBBBBBBBBBWWB WBBBWWWBBBBWBBW BWBBWBWBWWWWWBB BBWWWWBWBBW...
output:
No No No Yes Yes No No No Yes No
result:
wrong answer 2nd lines differ - expected: 'Yes', found: 'No'
Test #7:
score: 0
Wrong Answer
time: 0ms
memory: 1248kb
input:
10 14 14 WBWBBWWWWBBWBB BBWWWBBBWBBWWB BWBWWBBWBWBWBW BBWBWWBWWWBWWB WBWWBBBWBWWWBW WWBWBBBBBWWWBB W...
output:
No Yes Yes Yes No Yes No Yes No Yes
result:
wrong answer 1st lines differ - expected: 'Yes', found: 'No'
Test #8:
score: 0
Wrong Answer
time: 0ms
memory: 1248kb
input:
10 15 15 BBBBBBBWWWWBWWW BBWWWBWWBBWBBWB BWWBBBBWBBBWWBW WBWWBBWBWBBWBWW BWBWWWBBBBWWWWB WWWBBWWWBWW...
output:
No Yes Yes No No Yes No Yes No No
result:
wrong answer 2nd lines differ - expected: 'No', found: 'Yes'
Test #9:
score: 0
Wrong Answer
time: 0ms
memory: 1252kb
input:
10 15 15 WBBWWWBBWWWWBWW BWWWWWBBBWBBBBB BWWWWWBWBWWWBWW WWWWBBBWWBWBBBB BWWWWWBWWBWBBWW WWWWBWBWBBB...
output:
No Yes Yes No No Yes No No Yes No
result:
wrong answer 2nd lines differ - expected: 'No', found: 'Yes'
Test #10:
score: 0
Wrong Answer
time: 1ms
memory: 1252kb
input:
10 14 14 WBWWBBBBWWBBWB BWWWWBBWWBBWBB BWWBWWWBWWBWBW BWBBWBBWWBWWWW BBWBWWWBBBBBBB WWWWBWBBBBBWBB W...
output:
No No Yes No Yes No Yes Yes No Yes
result:
wrong answer 1st lines differ - expected: 'Yes', found: 'No'
Test #11:
score: 0
Wrong Answer
time: 0ms
memory: 1256kb
input:
10 99 100 BBBBBWBBBWWWBWBWWBBBWBWWBWWBBWBBWWBWWBWWBBWWWBWBWBWBBBWWBBBWWWWBBBBWWWBWWBWWBWBBWWWWBWWWWW...
output:
Yes No No No Yes Yes Yes No Yes No
result:
wrong answer 1st lines differ - expected: 'No', found: 'Yes'
Test #12:
score: 0
Wrong Answer
time: 0ms
memory: 1260kb
input:
10 99 99 BWWBWBWBBBBWWBWWWBBBBWWBBBBBWBWBBWBWWBBWBBBBWBWBBBWBWBBWWWWBBBWBWWBBBBBBWBBWWBBBBWWBWBWWBWB...
output:
No Yes No No Yes No Yes No No Yes
result:
wrong answer 2nd lines differ - expected: 'No', found: 'Yes'
Test #13:
score: 0
Wrong Answer
time: 1ms
memory: 1260kb
input:
10 99 99 WBWBBWWWBWWBBWBWBWWBBWBWWBBWBBBWBBBWWWWWBWWBBBBBBWBBBWBBBBBWBBBWWBBWWBBBBBWWBWBBBBBBWBWBBBB...
output:
No No Yes Yes Yes No No No Yes No
result:
wrong answer 2nd lines differ - expected: 'Yes', found: 'No'
Test #14:
score: 0
Wrong Answer
time: 2ms
memory: 1256kb
input:
10 100 99 BWBWBWWBBWBBBBWWBWBWWBWBBBBBWBBWWBWWBWWWBWBWBBWBWBBBWBBBBWBWBBWWBWWBWWBWBBWWWWWBBBBBWWWBWW...
output:
Yes Yes No No No Yes No No Yes Yes
result:
wrong answer 1st lines differ - expected: 'No', found: 'Yes'
Test #15:
score: 0
Wrong Answer
time: 0ms
memory: 1256kb
input:
10 99 99 WBBBWWBWBBWBWWBWBWWBWWBWBWWWBBBBWWWBBWWWBWBWWWWBBWWWBWBBBBWWBWWWWWBBBWWBBBWBBBBBBWWBWBBWWWW...
output:
No Yes No No No No No No No Yes
result:
wrong answer 2nd lines differ - expected: 'No', found: 'Yes'
Test #16:
score: 0
Wrong Answer
time: 0ms
memory: 1260kb
input:
10 100 100 WBBWWBWBWWWWWBBBWBWWWWBWWWBBWWWBBWWWWWBWWBBWBBWWBBWBBWBBBBWWBBWBBWWBWBBWBBWBWWBBWBWWWBBWW...
output:
No No No Yes No No Yes No No Yes
result:
wrong answer 1st lines differ - expected: 'Yes', found: 'No'
Test #17:
score: 0
Wrong Answer
time: 1ms
memory: 1256kb
input:
10 99 100 WBWWWBWWWWWWBWBBWBWBWWWBWWBBWWBBBWBBBBBBBBBWWBBWWWWWBBWWWBWWWBBWWBWWWWWBBWWWBWWWWBBBWWBWBB...
output:
Yes Yes No No No No No No Yes No
result:
wrong answer 1st lines differ - expected: 'No', found: 'Yes'
Test #18:
score: 0
Wrong Answer
time: 1ms
memory: 1260kb
input:
10 100 99 BBBWWWBBWBBBBBBWBBWBWWBWBBBWWWBBBWBWBWBBBBWBWWWBBWWBBBWWWBBBWWWBBBBWBWBWBWBWBWWBWWWBWBBBBW...
output:
Yes Yes No Yes No Yes No Yes Yes No
result:
wrong answer 1st lines differ - expected: 'No', found: 'Yes'
Test #19:
score: 0
Wrong Answer
time: 1ms
memory: 1260kb
input:
10 100 99 BWBBWWWBWWWBBWBWBBWWWBWWWBBWWWBWWBBBWBWBWBBBBWBBBWWBBBWBWWBWWWBWBBBWBBWBBBBBBBBWWWWBBBBWWW...
output:
Yes Yes Yes Yes Yes No Yes Yes Yes Yes
result:
wrong answer 1st lines differ - expected: 'No', found: 'Yes'
Test #20:
score: 0
Wrong Answer
time: 0ms
memory: 1260kb
input:
10 99 99 WWBWBWBWBWBBBBWBBBBWWWBWWWWBBBBBBBBBWBWWBBWWBBWWWBBWWWBWWWBBWWWWWBWBWWBWWWBWBWBWWWBBWBBBWWB...
output:
No Yes Yes No No Yes Yes No Yes No
result:
wrong answer 2nd lines differ - expected: 'No', found: 'Yes'