結果
| 問題 | 
                            No.1665 quotient replace
                             | 
                    
| コンテスト | |
| ユーザー | 
                            👑  SPD_9X2
                         | 
                    
| 提出日時 | 2021-09-03 21:46:15 | 
| 言語 | PyPy3  (7.3.15)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 363 bytes | 
| コンパイル時間 | 423 ms | 
| コンパイル使用メモリ | 82,060 KB | 
| 実行使用メモリ | 227,664 KB | 
| 最終ジャッジ日時 | 2024-12-15 11:51:42 | 
| 合計ジャッジ時間 | 12,386 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge2 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | WA * 3 | 
| other | WA * 41 | 
ソースコード
"""
r ** j = n
"""
import math
import sys
from sys import stdin
dp = [0] * (10**6+1)
for i in range(1,len(dp)):
    for j in range(i+1,len(dp),i):
        dp[j] = max(dp[j] , dp[i] + 1)
        
N = int(stdin.readline())
A = list(map(int,stdin.readline().split()))
x = 0
for a in A:
    x ^= dp[a]
if x == 0:
    print ("Black")
else:
    print ("White")
            
            
            
        
            
SPD_9X2