QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#499825 | #8516. LED Matrix | 123adad | WA | 0ms | 3672kb | C++14 | 673b | 2024-07-31 19:30:41 | 2024-07-31 19:30:43 |
Judging History
answer
#include<bits/stdc++.h>
using namespace std;
using ll=long long;
const int N=110;
int a[1010][1010],b[1010];
void solve()
{
int n,m,k;cin>>n>>m>>k;
for(int i=1;i<=n;i++)
{
for(int j=1;j<=m;j++)
{
char x;cin>>x;
if(x=='*') a[i][j]=1;
else a[i][j]=0;
}
}
for(int i=1;i<=n;i++)
{
for(int j=1;j<=k;j++)
{
char x;cin>>x;
if(x=='*') b[i]=1;
}
}
for(int i=1;i<=n;i++)
{
for(int j=1;j<=m;j++)
{
if(b[i]&&a[i][j]=='-')
{
cout<<"N";
return;
}
}
}
cout<<"Y";
}
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: 0
Wrong Answer
time: 0ms
memory: 3672kb
input:
6 6 6 ****** --*--- ****** -**--- ****** ****** ****** ****** ****** -**--- *****- --*---
output:
Y
result:
wrong answer 1st words differ - expected: 'N', found: 'Y'