結果

問題 No.1665 quotient replace
ユーザー rin204
提出日時 2021-09-03 21:38:23
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 309 bytes
コンパイル時間 160 ms
コンパイル使用メモリ 82,528 KB
実行使用メモリ 231,236 KB
最終ジャッジ日時 2024-12-15 11:01:53
合計ジャッジ時間 48,443 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 35 TLE * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
alst = list(map(int, input().split()))
x = 0

for a in alst:
    cnt = 0
    j = 2
    while j * j <= a:
        while a % j == 0:
            a //= j
            cnt += 1
        j += 1
    if a != 1:
        cnt += 1
    x ^= cnt
    
if x == 0:
    print("black")
else:
    print("white")
0