QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#408225 | #8516. LED Matrix | ucup-team191# | WA | 1ms | 3588kb | C++23 | 334b | 2024-05-09 21:17:00 | 2024-05-09 21:17:01 |
Judging History
answer
#include <cstdio>
#include <iostream>
using namespace std;
int r, c, k;
string s, t;
int main() {
ios_base::sync_with_stdio(false); cin.tie(0);
cin >> r >> c >> k;
for(;r--;) {
cin >> s >> t;
if(s != string(c, '*') && t != string(k, '- ')) {
cout << "N\n"; return 0;
}
}
cout << "Y\n";
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 1ms
memory: 3520kb
input:
6 6 6 ****** --*--- ****** -**--- ****** ****** ****** ****** ****** -**--- *****- --*---
output:
N
result:
ok "N"
Test #2:
score: 0
Accepted
time: 0ms
memory: 3588kb
input:
2 4 6 **** ------ ***- *-----
output:
N
result:
ok "N"
Test #3:
score: -100
Wrong Answer
time: 0ms
memory: 3564kb
input:
2 6 4 ****** **** *-**-* ----
output:
N
result:
wrong answer 1st words differ - expected: 'Y', found: 'N'