結果

問題 No.1665 quotient replace
ユーザー minimumminimum
提出日時 2021-09-03 21:55:15
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 422 bytes
コンパイル時間 318 ms
コンパイル使用メモリ 82,092 KB
実行使用メモリ 174,540 KB
最終ジャッジ日時 2024-05-09 03:36:19
合計ジャッジ時間 10,651 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 35 ms
57,216 KB
testcase_01 AC 34 ms
51,840 KB
testcase_02 AC 36 ms
51,840 KB
testcase_03 AC 56 ms
63,488 KB
testcase_04 AC 58 ms
63,872 KB
testcase_05 AC 42 ms
59,392 KB
testcase_06 AC 145 ms
70,400 KB
testcase_07 AC 69 ms
65,536 KB
testcase_08 AC 103 ms
67,328 KB
testcase_09 AC 400 ms
78,984 KB
testcase_10 TLE -
testcase_11 TLE -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
testcase_23 -- -
testcase_24 -- -
testcase_25 -- -
testcase_26 -- -
testcase_27 -- -
testcase_28 -- -
testcase_29 -- -
testcase_30 -- -
testcase_31 -- -
testcase_32 -- -
testcase_33 -- -
testcase_34 -- -
testcase_35 -- -
testcase_36 -- -
testcase_37 -- -
testcase_38 -- -
testcase_39 -- -
testcase_40 -- -
testcase_41 -- -
testcase_42 -- -
testcase_43 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
A = list(map(int, input().split()))
x = 0
for a in A:
    i = 2
    ans = dict()
    n = a
    while i * i <= a:
        while n % i==0:
            n = n // i
            if i in ans:
                ans[i] += 1
            else:
                ans[i] = 1
        i += 1
    if n != 1:
        ans[n] = 1
    res = 0
    for c in ans:
        res += ans[c]
    x ^= res
print(["white", "black"][x == 0])
0