結果

問題 No.1665 quotient replace
ユーザー ntuda
提出日時 2021-09-04 11:59:40
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 386 bytes
コンパイル時間 319 ms
コンパイル使用メモリ 82,244 KB
実行使用メモリ 311,652 KB
最終ジャッジ日時 2024-12-17 19:53:00
合計ジャッジ時間 79,047 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 22 WA * 1 TLE * 18
権限があれば一括ダウンロードができます

ソースコード

diff #

def num_divisors(n):
    divisors = []
    for i in range(1, int(n**0.5)+1):
        if n % i == 0:
            divisors.append(i)
            if i != n // i:
                divisors.append(n//i)
    return len(divisors) - 1

N = int(input())
A = list(map(int,input().split()))
G = 0
for i in range(N):
    G ^= num_divisors(A[i])
if G == 0:
    print("black")
else:
    print("white")
0