結果
| 問題 |
No.103 素因数ゲーム リターンズ
|
| コンテスト | |
| ユーザー |
とりゐ
|
| 提出日時 | 2022-01-03 23:20:31 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 53 ms / 5,000 ms |
| コード長 | 246 bytes |
| コンパイル時間 | 449 ms |
| コンパイル使用メモリ | 82,176 KB |
| 実行使用メモリ | 58,624 KB |
| 最終ジャッジ日時 | 2024-10-13 12:08:22 |
| 合計ジャッジ時間 | 2,162 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 5 |
| other | AC * 20 |
ソースコード
n=int(input())
xor=0
m=list(map(int,input().split()))
for i in m:
tmp=i
for j in range(2,i+1):
if tmp%j==0:
cnt=0
while tmp%j==0:
cnt+=1
tmp//=j
xor^=cnt%3
if xor==0:
print('Bob')
else:
print('Alice')
とりゐ