提出 #75753279


ソースコード 拡げる

import sys
input = sys.stdin.readline

for _ in range(int(input())):
    n,k = map(int,input().split())
    L = []
    for _ in range(n):
        L.append(list(map(int,input().split())))
    
    x = 0
    for i in range(n):
        for j in range(n):
            if (i+j)%2:
                x ^= L[i][j]%(k+1)
    if x: print('Alice')
    else: print('Bob')

提出情報

提出日時
問題 D - Grid Game
ユーザ Cenix820
言語 Python (PyPy 3.11-v7.3.20)
得点 500
コード長 373 Byte
結果 AC
実行時間 163 ms
メモリ 109152 KiB

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 500 / 500
結果
AC × 1
AC × 14
セット名 テストケース
Sample 00_sample_00.txt
All 00_sample_00.txt, 01_handmade_00.txt, 01_handmade_01.txt, 01_handmade_02.txt, 01_handmade_03.txt, 02_random_00.txt, 02_random_01.txt, 02_random_02.txt, 02_random_03.txt, 02_random_04.txt, 02_random_05.txt, 02_random_06.txt, 02_random_07.txt, 02_random_08.txt
ケース名 結果 実行時間 メモリ
00_sample_00.txt AC 53 ms 79580 KiB
01_handmade_00.txt AC 163 ms 109152 KiB
01_handmade_01.txt AC 71 ms 97416 KiB
01_handmade_02.txt AC 71 ms 97584 KiB
01_handmade_03.txt AC 66 ms 96648 KiB
02_random_00.txt AC 89 ms 108796 KiB
02_random_01.txt AC 89 ms 108952 KiB
02_random_02.txt AC 89 ms 108708 KiB
02_random_03.txt AC 90 ms 108564 KiB
02_random_04.txt AC 88 ms 108580 KiB
02_random_05.txt AC 89 ms 108724 KiB
02_random_06.txt AC 89 ms 108672 KiB
02_random_07.txt AC 89 ms 108868 KiB
02_random_08.txt AC 88 ms 108800 KiB