QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#499864 | #8516. LED Matrix | 123adad | WA | 0ms | 3636kb | C++17 | 568b | 2024-07-31 19:44:20 | 2024-07-31 19:44:21 |
Judging History
answer
#include<bits/stdc++.h>
using namespace std;
using ll=long long;
const int N=110;
char a[1010][1010],b[1010][1010];
void solve()
{
int n,m,k;cin>>n>>m>>k;
int flag=1;
for(int i=1;i<=n;i++)
{
int x=0;
for(int j=1;j<=m;j++)
{
cin>>a[i][j];
if(a[i][j]=='*') x=1;
}
for(int j=1;j<=k;j++)
{
cin>>b[i][j];
if(b[i][j]=='*'&&x)
{
flag=0;
}
}
}
if(flag) cout<<"Y";
else cout<<"N";
}
int main()
{
ios::sync_with_stdio(0),cin.tie(0),cout.tie(0);
int _=1;//cin>>_;
while(_--) solve();
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 0ms
memory: 3564kb
input:
6 6 6 ****** --*--- ****** -**--- ****** ****** ****** ****** ****** -**--- *****- --*---
output:
N
result:
ok "N"
Test #2:
score: 0
Accepted
time: 0ms
memory: 3560kb
input:
2 4 6 **** ------ ***- *-----
output:
N
result:
ok "N"
Test #3:
score: -100
Wrong Answer
time: 0ms
memory: 3636kb
input:
2 6 4 ****** **** *-**-* ----
output:
N
result:
wrong answer 1st words differ - expected: 'Y', found: 'N'