結果

問題 No.1665 quotient replace
ユーザー H3PO4H3PO4
提出日時 2021-09-03 21:43:47
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 301 ms / 3,000 ms
コード長 334 bytes
コンパイル時間 480 ms
コンパイル使用メモリ 87,084 KB
実行使用メモリ 184,156 KB
最終ジャッジ日時 2023-08-21 20:45:42
合計ジャッジ時間 10,118 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 107 ms
84,304 KB
testcase_01 AC 109 ms
84,300 KB
testcase_02 AC 107 ms
84,248 KB
testcase_03 AC 108 ms
84,096 KB
testcase_04 AC 128 ms
84,144 KB
testcase_05 AC 110 ms
84,492 KB
testcase_06 AC 114 ms
84,324 KB
testcase_07 AC 109 ms
84,516 KB
testcase_08 AC 109 ms
84,164 KB
testcase_09 AC 114 ms
85,892 KB
testcase_10 AC 188 ms
104,696 KB
testcase_11 AC 247 ms
160,532 KB
testcase_12 AC 121 ms
91,052 KB
testcase_13 AC 301 ms
183,648 KB
testcase_14 AC 297 ms
182,968 KB
testcase_15 AC 299 ms
184,156 KB
testcase_16 AC 287 ms
183,160 KB
testcase_17 AC 288 ms
183,312 KB
testcase_18 AC 107 ms
84,208 KB
testcase_19 AC 107 ms
84,320 KB
testcase_20 AC 107 ms
84,236 KB
testcase_21 AC 107 ms
84,288 KB
testcase_22 AC 107 ms
84,036 KB
testcase_23 AC 106 ms
84,308 KB
testcase_24 AC 109 ms
84,340 KB
testcase_25 AC 109 ms
84,248 KB
testcase_26 AC 109 ms
84,280 KB
testcase_27 AC 113 ms
84,140 KB
testcase_28 AC 113 ms
86,212 KB
testcase_29 AC 120 ms
89,568 KB
testcase_30 AC 183 ms
121,596 KB
testcase_31 AC 240 ms
154,788 KB
testcase_32 AC 240 ms
151,364 KB
testcase_33 AC 170 ms
114,828 KB
testcase_34 AC 217 ms
145,156 KB
testcase_35 AC 195 ms
122,348 KB
testcase_36 AC 218 ms
142,920 KB
testcase_37 AC 193 ms
121,592 KB
testcase_38 AC 226 ms
152,464 KB
testcase_39 AC 181 ms
116,052 KB
testcase_40 AC 184 ms
115,860 KB
testcase_41 AC 181 ms
116,060 KB
testcase_42 AC 112 ms
84,248 KB
testcase_43 AC 105 ms
84,368 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