Submission #59167837


Source Code Expand

map_list = []
out_gyou = set()
out_retu = set()
ans = 0

for i in range(8):
    S = input()
    map_list.append(S)

for i in range(8):
    for j in range(8):
        if map_list[i][j] == "#":
            out_gyou.add(i)
            out_retu.add(j)

for i in range(8):
    for j in range(8):
        if (i not in out_gyou) :
            if (j not in out_retu):
                ans += 1

print(ans)

Submission Info

Submission Time
Task B - Avoid Rook Attack
User ikou
Language Python (PyPy 3.10-v7.3.12)
Score 200
Code Size 417 Byte
Status AC
Exec Time 58 ms
Memory 76688 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 200 / 200
Status
AC × 3
AC × 17
Set Name Test Cases
Sample 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt
All 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt, 01_random_03.txt, 01_random_04.txt, 01_random_05.txt, 01_random_06.txt, 01_random_07.txt, 01_random_08.txt, 01_random_09.txt, 01_random_10.txt, 01_random_11.txt, 01_random_12.txt, 01_random_13.txt, 01_random_14.txt, 01_random_15.txt, 01_random_16.txt
Case Name Status Exec Time Memory
00_sample_00.txt AC 57 ms 76292 KiB
00_sample_01.txt AC 57 ms 76688 KiB
00_sample_02.txt AC 57 ms 76288 KiB
01_random_03.txt AC 57 ms 76312 KiB
01_random_04.txt AC 57 ms 76160 KiB
01_random_05.txt AC 57 ms 76504 KiB
01_random_06.txt AC 58 ms 76440 KiB
01_random_07.txt AC 57 ms 76284 KiB
01_random_08.txt AC 57 ms 76444 KiB
01_random_09.txt AC 56 ms 76172 KiB
01_random_10.txt AC 56 ms 76304 KiB
01_random_11.txt AC 57 ms 76216 KiB
01_random_12.txt AC 56 ms 76288 KiB
01_random_13.txt AC 56 ms 76604 KiB
01_random_14.txt AC 56 ms 76496 KiB
01_random_15.txt AC 57 ms 76332 KiB
01_random_16.txt AC 56 ms 76244 KiB