結果

問題 No.103 素因数ゲーム リターンズ
ユーザー simansiman
提出日時 2022-04-22 01:01:51
言語 Ruby
(3.2.2)
結果
AC  
実行時間 96 ms / 5,000 ms
コード長 197 bytes
コンパイル時間 76 ms
コンパイル使用メモリ 11,480 KB
実行使用メモリ 15,524 KB
最終ジャッジ日時 2023-09-05 07:31:23
合計ジャッジ時間 3,682 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 91 ms
15,524 KB
testcase_01 AC 94 ms
15,340 KB
testcase_02 AC 93 ms
15,196 KB
testcase_03 AC 92 ms
15,272 KB
testcase_04 AC 92 ms
15,332 KB
testcase_05 AC 92 ms
15,424 KB
testcase_06 AC 90 ms
15,276 KB
testcase_07 AC 91 ms
15,280 KB
testcase_08 AC 92 ms
15,072 KB
testcase_09 AC 91 ms
15,304 KB
testcase_10 AC 92 ms
15,268 KB
testcase_11 AC 93 ms
15,184 KB
testcase_12 AC 92 ms
15,252 KB
testcase_13 AC 92 ms
15,084 KB
testcase_14 AC 93 ms
15,160 KB
testcase_15 AC 93 ms
15,068 KB
testcase_16 AC 95 ms
15,288 KB
testcase_17 AC 94 ms
15,144 KB
testcase_18 AC 96 ms
15,284 KB
testcase_19 AC 95 ms
15,124 KB
testcase_20 AC 94 ms
15,152 KB
testcase_21 AC 94 ms
15,212 KB
testcase_22 AC 93 ms
15,268 KB
testcase_23 AC 94 ms
15,164 KB
testcase_24 AC 94 ms
15,140 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

require 'prime'

N = gets.to_i
M = gets.split.map(&:to_i)

cur = 0

M.each do |m|
  m.prime_division.each do |e, cnt|
    cur ^= cnt % 3
  end
end

if cur == 0
  puts 'Bob'
else
  puts 'Alice'
end
0