結果
問題 |
No.103 素因数ゲーム リターンズ
|
ユーザー |
|
提出日時 | 2017-06-29 14:00:43 |
言語 | Ruby (3.4.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 249 bytes |
コンパイル時間 | 204 ms |
コンパイル使用メモリ | 7,424 KB |
実行使用メモリ | 12,544 KB |
最終ジャッジ日時 | 2024-10-04 16:36:29 |
合計ジャッジ時間 | 3,677 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 WA * 1 |
other | AC * 15 WA * 5 |
コンパイルメッセージ
Syntax OK
ソースコード
def ascan; gets.split.map(&:to_i); end def scan; gets.to_i; end require 'prime' gets; aa = ascan 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)} puts g==0 ? "Bob" : "Alice"