QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#408225#8516. LED Matrixucup-team191#WA 1ms3588kbC++23334b2024-05-09 21:17:002024-05-09 21:17:01

Judging History

你现在查看的是最新测评结果

  • [2024-05-09 21:17:01]
  • 评测
  • 测评结果:WA
  • 用时:1ms
  • 内存:3588kb
  • [2024-05-09 21:17:00]
  • 提交

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'