QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#815758#9884. Grid Constructionucup-team5243#WA 15ms10608kbPython3217b2024-12-15 16:57:522024-12-15 16:57:52

Judging History

This is the latest submission verdict.

  • [2024-12-15 16:57:52]
  • Judged
  • Verdict: WA
  • Time: 15ms
  • Memory: 10608kb
  • [2024-12-15 16:57:52]
  • Submitted

answer

H,W = map(int,input().split())
if H == 3 and W == 3:
    print("""Yes
<<^
v.^
v>>""")
elif H == 4 and W == 4:
    print("No")
elif H == 4 and W == 5:
    print("No")
else:
    assert W <= 5
    print("No")

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 15ms
memory: 10604kb

input:

3 3

output:

Yes
<<^
v.^
v>>

result:

ok Correct

Test #2:

score: 0
Accepted
time: 9ms
memory: 10532kb

input:

4 4

output:

No

result:

ok Correct : No

Test #3:

score: 0
Accepted
time: 15ms
memory: 10600kb

input:

4 5

output:

No

result:

ok Correct : No

Test #4:

score: -100
Wrong Answer
time: 14ms
memory: 10608kb

input:

11 17

output:

No

result:

wrong answer Incorrect