結果
| 問題 | No.103 素因数ゲーム リターンズ |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-07-01 16:05:34 |
| 言語 | Ruby (3.4.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 340 bytes |
| コンパイル時間 | 122 ms |
| コンパイル使用メモリ | 7,424 KB |
| 実行使用メモリ | 12,544 KB |
| 最終ジャッジ日時 | 2024-10-05 04:49:02 |
| 合計ジャッジ時間 | 3,430 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 5 |
| other | AC * 12 WA * 8 |
コンパイルメッセージ
Syntax OK
ソースコード
def ascan; gets.split.map(&:to_i); end
def scan; gets.to_i; end
require 'prime'
gets;
while cin = gets
aa = cin.split.map(&:to_i);
pp = aa.map{|e| Prime.prime_division(e).map{|x,c|[x]*c}.flatten!}
nn = pp.map(&:size)
#p nn
g = nn.reduce(0){|s,e| s^(e>3 ? 3: e)}
puts g<2 ? "Bob" : "Alice"
end