結果
問題 | No.1665 quotient replace |
ユーザー | AEn |
提出日時 | 2022-09-07 00:40:33 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 447 bytes |
コンパイル時間 | 288 ms |
コンパイル使用メモリ | 82,288 KB |
実行使用メモリ | 246,760 KB |
最終ジャッジ日時 | 2024-05-01 18:53:33 |
合計ジャッジ時間 | 29,243 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 36 ms
59,736 KB |
testcase_01 | AC | 36 ms
52,348 KB |
testcase_02 | AC | 36 ms
54,020 KB |
testcase_03 | AC | 44 ms
60,036 KB |
testcase_04 | AC | 46 ms
60,840 KB |
testcase_05 | AC | 40 ms
57,928 KB |
testcase_06 | AC | 75 ms
70,468 KB |
testcase_07 | AC | 53 ms
63,332 KB |
testcase_08 | AC | 65 ms
67,304 KB |
testcase_09 | AC | 145 ms
78,376 KB |
testcase_10 | AC | 1,054 ms
121,688 KB |
testcase_11 | AC | 2,264 ms
167,656 KB |
testcase_12 | AC | 298 ms
87,792 KB |
testcase_13 | TLE | - |
testcase_14 | TLE | - |
testcase_15 | TLE | - |
testcase_16 | TLE | - |
testcase_17 | AC | 2,993 ms
246,760 KB |
testcase_18 | AC | 37 ms
52,868 KB |
testcase_19 | AC | 36 ms
52,924 KB |
testcase_20 | AC | 37 ms
53,312 KB |
testcase_21 | AC | 38 ms
53,268 KB |
testcase_22 | AC | 37 ms
52,620 KB |
testcase_23 | AC | 38 ms
52,268 KB |
testcase_24 | AC | 37 ms
52,272 KB |
testcase_25 | AC | 38 ms
52,648 KB |
testcase_26 | AC | 65 ms
63,180 KB |
testcase_27 | AC | 111 ms
67,256 KB |
testcase_28 | AC | 361 ms
78,848 KB |
testcase_29 | AC | 696 ms
84,864 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 | -- | - |
ソースコード
N = int(input()) A = list(map(int, input().split())) def fac(M): if M == 1: return 0 else: cnt = 0 s = 2 while s*s<=M: if M%s==0: while M%s==0: M//=s cnt += 1 s += 1 if M>1: cnt += 1 return cnt res = 0 for i in range(N): res ^= fac(A[i]) if res==0: print('black') else: print('white')