結果

問題 No.1665 quotient replace
ユーザー nikumakarenikumakare
提出日時 2021-12-09 23:25:07
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 372 bytes
コンパイル時間 405 ms
コンパイル使用メモリ 87,016 KB
実行使用メモリ 184,020 KB
最終ジャッジ日時 2023-09-24 15:39:10
合計ジャッジ時間 46,500 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 74 ms
75,516 KB
testcase_01 AC 77 ms
75,592 KB
testcase_02 AC 78 ms
75,488 KB
testcase_03 AC 83 ms
76,196 KB
testcase_04 AC 84 ms
76,160 KB
testcase_05 AC 78 ms
75,672 KB
testcase_06 AC 108 ms
76,496 KB
testcase_07 AC 88 ms
76,424 KB
testcase_08 AC 98 ms
76,516 KB
testcase_09 AC 177 ms
78,544 KB
testcase_10 AC 1,120 ms
102,956 KB
testcase_11 AC 2,415 ms
160,856 KB
testcase_12 AC 340 ms
83,824 KB
testcase_13 TLE -
testcase_14 TLE -
testcase_15 TLE -
testcase_16 TLE -
testcase_17 TLE -
testcase_18 AC 76 ms
75,452 KB
testcase_19 WA -
testcase_20 AC 76 ms
75,472 KB
testcase_21 AC 76 ms
75,664 KB
testcase_22 AC 76 ms
75,472 KB
testcase_23 WA -
testcase_24 WA -
testcase_25 AC 77 ms
75,444 KB
testcase_26 WA -
testcase_27 WA -
testcase_28 WA -
testcase_29 WA -
testcase_30 WA -
testcase_31 WA -
testcase_32 WA -
testcase_33 WA -
testcase_34 WA -
testcase_35 WA -
testcase_36 WA -
testcase_37 WA -
testcase_38 WA -
testcase_39 WA -
testcase_40 WA -
testcase_41 WA -
testcase_42 AC 77 ms
75,600 KB
testcase_43 AC 76 ms
76,188 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
A=[int(i) for i in input().split()]
ans=0
sosu=[]
fu=[0 for i in range(1001)]
for i in range(2,1001):
    if fu[i]==0:
        sosu.append(i)
        for q in range(i,1001,i):
            fu[q]=1

for num in A:
    sub=0
    for i in sosu:
        while num%i==0:
            num//=i
            sub+=1
    ans^=sub
print("white") if ans else print("black")
0