結果
問題 |
No.103 素因数ゲーム リターンズ
|
ユーザー |
|
提出日時 | 2017-06-29 14:11:01 |
言語 | Ruby (3.4.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 336 bytes |
コンパイル時間 | 35 ms |
コンパイル使用メモリ | 7,680 KB |
実行使用メモリ | 12,672 KB |
最終ジャッジ日時 | 2024-10-04 16:37:02 |
合計ジャッジ時間 | 3,026 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 5 |
other | AC * 14 WA * 6 |
コンパイルメッセージ
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) g = nn.reduce(0){|s,e| s^(e>3 ? 3: e)} puts g==0 ? "Bob" : "Alice" end