結果

問題 No.1665 quotient replace
ユーザー 👑 SPD_9X2SPD_9X2
提出日時 2021-09-03 21:48:55
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 457 ms / 3,000 ms
コード長 368 bytes
コンパイル時間 1,466 ms
コンパイル使用メモリ 86,716 KB
実行使用メモリ 230,624 KB
最終ジャッジ日時 2023-08-21 21:08:45
合計ジャッジ時間 17,131 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 237 ms
84,660 KB
testcase_01 AC 241 ms
84,660 KB
testcase_02 AC 242 ms
84,456 KB
testcase_03 AC 240 ms
84,428 KB
testcase_04 AC 237 ms
84,672 KB
testcase_05 AC 245 ms
84,548 KB
testcase_06 AC 238 ms
85,048 KB
testcase_07 AC 231 ms
84,664 KB
testcase_08 AC 233 ms
84,756 KB
testcase_09 AC 258 ms
87,372 KB
testcase_10 AC 321 ms
128,868 KB
testcase_11 AC 382 ms
171,420 KB
testcase_12 AC 265 ms
96,564 KB
testcase_13 AC 425 ms
230,624 KB
testcase_14 AC 424 ms
229,632 KB
testcase_15 AC 422 ms
230,028 KB
testcase_16 AC 457 ms
229,804 KB
testcase_17 AC 426 ms
229,388 KB
testcase_18 AC 233 ms
84,776 KB
testcase_19 AC 234 ms
84,512 KB
testcase_20 AC 235 ms
84,780 KB
testcase_21 AC 237 ms
84,596 KB
testcase_22 AC 243 ms
84,600 KB
testcase_23 AC 238 ms
84,728 KB
testcase_24 AC 229 ms
84,684 KB
testcase_25 AC 232 ms
84,488 KB
testcase_26 AC 242 ms
84,580 KB
testcase_27 AC 236 ms
84,808 KB
testcase_28 AC 240 ms
87,812 KB
testcase_29 AC 249 ms
93,544 KB
testcase_30 AC 351 ms
157,244 KB
testcase_31 AC 395 ms
184,400 KB
testcase_32 AC 375 ms
171,140 KB
testcase_33 AC 308 ms
116,352 KB
testcase_34 AC 356 ms
168,564 KB
testcase_35 AC 347 ms
157,888 KB
testcase_36 AC 346 ms
167,764 KB
testcase_37 AC 341 ms
156,852 KB
testcase_38 AC 360 ms
179,820 KB
testcase_39 AC 331 ms
145,468 KB
testcase_40 AC 366 ms
145,232 KB
testcase_41 AC 327 ms
145,552 KB
testcase_42 AC 244 ms
84,636 KB
testcase_43 AC 242 ms
84,680 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

"""

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)

#print (dp)

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")
0