Submission #63253777


Source Code Expand

Copy
N = int(input())
for j in range(N):
ans = []
for k in range(N):
j2 = j
k2 = k
if j >= N // 2:
j2 = N - j - 1
if k >= N // 2:
k2 = N - k - 1
if min(j2, k2) % 2 == 0:
ans.append("#")
else:
ans.append(".")
print("".join(ans))
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
N = int(input())

for j in range(N):
  ans = []
  for k in range(N):
    j2 = j
    k2 = k
    if j >= N // 2:
      j2 = N - j - 1
    if k >= N // 2:
      k2 = N - k - 1
    if min(j2, k2) % 2 == 0:
      ans.append("#")
    else:
      ans.append(".")
  print("".join(ans))

Submission Info

Submission Time
Task B - Make Target
User sushitempura
Language Python (PyPy 3.10-v7.3.12)
Score 200
Code Size 292 Byte
Status AC
Exec Time 71 ms
Memory 81636 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 200 / 200
Status
AC × 4
AC × 20
Set Name Test Cases
Sample 00-sample-001.txt, 00-sample-002.txt, 00-sample-003.txt, 00-sample-004.txt
All 00-sample-001.txt, 00-sample-002.txt, 00-sample-003.txt, 00-sample-004.txt, 01-random-001.txt, 01-random-002.txt, 01-random-003.txt, 01-random-004.txt, 01-random-005.txt, 01-random-006.txt, 01-random-007.txt, 01-random-008.txt, 01-random-009.txt, 01-random-010.txt, 01-random-011.txt, 01-random-012.txt, 01-random-013.txt, 01-random-014.txt, 01-random-015.txt, 01-random-016.txt
Case Name Status Exec Time Memory
00-sample-001.txt AC 64 ms 76488 KB
00-sample-002.txt AC 66 ms 76348 KB
00-sample-003.txt AC 66 ms 76632 KB
00-sample-004.txt AC 68 ms 76492 KB
01-random-001.txt AC 64 ms 76748 KB
01-random-002.txt AC 65 ms 76516 KB
01-random-003.txt AC 64 ms 76620 KB
01-random-004.txt AC 66 ms 76528 KB
01-random-005.txt AC 71 ms 81440 KB
01-random-006.txt AC 71 ms 81292 KB
01-random-007.txt AC 70 ms 81220 KB
01-random-008.txt AC 71 ms 81636 KB
01-random-009.txt AC 68 ms 81488 KB
01-random-010.txt AC 65 ms 76604 KB
01-random-011.txt AC 67 ms 81080 KB
01-random-012.txt AC 71 ms 81236 KB
01-random-013.txt AC 65 ms 76432 KB
01-random-014.txt AC 66 ms 76496 KB
01-random-015.txt AC 65 ms 76348 KB
01-random-016.txt AC 65 ms 76460 KB


2025-04-18 (Fri)
04:37:07 +00:00