結果
| 問題 |
No.1665 quotient replace
|
| コンテスト | |
| ユーザー |
👑 SPD_9X2
|
| 提出日時 | 2021-09-03 21:46:33 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 362 bytes |
| コンパイル時間 | 331 ms |
| コンパイル使用メモリ | 81,764 KB |
| 実行使用メモリ | 226,928 KB |
| 最終ジャッジ日時 | 2024-12-15 11:53:13 |
| 合計ジャッジ時間 | 14,804 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(2*i,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