結果

問題 No.1665 quotient replace
ユーザー H3PO4H3PO4
提出日時 2021-09-03 21:43:47
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 219 ms / 3,000 ms
コード長 334 bytes
コンパイル時間 369 ms
コンパイル使用メモリ 81,968 KB
実行使用メモリ 165,740 KB
最終ジャッジ日時 2024-05-09 02:49:03
合計ジャッジ時間 7,462 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 67 ms
71,808 KB
testcase_01 AC 67 ms
71,680 KB
testcase_02 AC 67 ms
71,552 KB
testcase_03 AC 70 ms
72,064 KB
testcase_04 AC 71 ms
72,192 KB
testcase_05 AC 67 ms
71,808 KB
testcase_06 AC 71 ms
73,728 KB
testcase_07 AC 70 ms
72,576 KB
testcase_08 AC 70 ms
73,216 KB
testcase_09 AC 75 ms
76,800 KB
testcase_10 AC 129 ms
106,112 KB
testcase_11 AC 191 ms
151,392 KB
testcase_12 AC 83 ms
85,120 KB
testcase_13 AC 213 ms
165,484 KB
testcase_14 AC 208 ms
165,696 KB
testcase_15 AC 206 ms
165,632 KB
testcase_16 AC 209 ms
165,360 KB
testcase_17 AC 219 ms
165,740 KB
testcase_18 AC 67 ms
71,424 KB
testcase_19 AC 69 ms
71,680 KB
testcase_20 AC 68 ms
71,680 KB
testcase_21 AC 67 ms
71,680 KB
testcase_22 AC 70 ms
71,552 KB
testcase_23 AC 67 ms
72,192 KB
testcase_24 AC 67 ms
71,808 KB
testcase_25 AC 68 ms
72,064 KB
testcase_26 AC 68 ms
72,960 KB
testcase_27 AC 73 ms
73,472 KB
testcase_28 AC 81 ms
77,184 KB
testcase_29 AC 80 ms
82,560 KB
testcase_30 AC 143 ms
119,472 KB
testcase_31 AC 193 ms
151,328 KB
testcase_32 AC 188 ms
160,344 KB
testcase_33 AC 125 ms
116,096 KB
testcase_34 AC 147 ms
125,904 KB
testcase_35 AC 155 ms
120,452 KB
testcase_36 AC 147 ms
126,100 KB
testcase_37 AC 145 ms
119,520 KB
testcase_38 AC 177 ms
148,512 KB
testcase_39 AC 136 ms
112,900 KB
testcase_40 AC 134 ms
112,912 KB
testcase_41 AC 137 ms
112,652 KB
testcase_42 AC 68 ms
71,552 KB
testcase_43 AC 67 ms
72,192 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
A = map(int, input().split())
MAX = 10 ** 6
table = [0] * (MAX + 1)
for i in range(2, MAX + 1):
    if not table[i]:
        j = i
        while j <= MAX:
            for k in range(j, MAX + 1, j):
                table[k] += 1
            j *= i

x = 0
for a in A:
    x ^= table[a]
print('white' if x else 'black')
0