結果
問題 | No.1665 quotient replace |
ユーザー | shakayami |
提出日時 | 2021-09-03 21:37:36 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 356 bytes |
コンパイル時間 | 532 ms |
コンパイル使用メモリ | 87,076 KB |
実行使用メモリ | 184,240 KB |
最終ジャッジ日時 | 2023-08-21 20:23:14 |
合計ジャッジ時間 | 30,516 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 74 ms
71,564 KB |
testcase_01 | AC | 74 ms
71,168 KB |
testcase_02 | AC | 75 ms
71,228 KB |
testcase_03 | AC | 82 ms
75,156 KB |
testcase_04 | AC | 86 ms
75,476 KB |
testcase_05 | AC | 80 ms
75,024 KB |
testcase_06 | AC | 115 ms
76,600 KB |
testcase_07 | AC | 94 ms
76,280 KB |
testcase_08 | AC | 105 ms
76,680 KB |
testcase_09 | AC | 189 ms
78,840 KB |
testcase_10 | AC | 1,161 ms
102,856 KB |
testcase_11 | AC | 2,480 ms
160,916 KB |
testcase_12 | AC | 353 ms
84,088 KB |
testcase_13 | TLE | - |
testcase_14 | TLE | - |
testcase_15 | TLE | - |
testcase_16 | TLE | - |
testcase_17 | TLE | - |
testcase_18 | AC | 75 ms
70,968 KB |
testcase_19 | AC | 73 ms
71,356 KB |
testcase_20 | AC | 74 ms
71,172 KB |
testcase_21 | AC | 77 ms
71,168 KB |
testcase_22 | AC | 77 ms
71,152 KB |
testcase_23 | AC | 75 ms
71,228 KB |
testcase_24 | AC | 75 ms
71,416 KB |
testcase_25 | AC | 74 ms
71,288 KB |
testcase_26 | AC | 105 ms
76,364 KB |
testcase_27 | AC | 157 ms
76,396 KB |
testcase_28 | AC | 434 ms
78,920 KB |
testcase_29 | AC | 809 ms
82,112 KB |
testcase_30 | TLE | - |
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 | -- | - |
ソースコード
def prime_count(K): res=0 p=2 while(p*p<=K): while(K%p==0): res+=1 K//=p p+=1 if K>1: res+=1 return res N=int(input()) A=[int(i) for i in input().split()] X=[prime_count(a) for a in A] Grundy=0 for i in range(N): Grundy^=X[i] if Grundy==0: print("black") else: print("white")