結果

問題 No.601 Midpoint Erase
ユーザー TANIGUCHI KousukeTANIGUCHI Kousuke
提出日時 2020-01-28 19:45:28
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 179 bytes
コンパイル時間 103 ms
コンパイル使用メモリ 11,436 KB
実行使用メモリ 15,324 KB
最終ジャッジ日時 2023-10-13 20:51:58
合計ジャッジ時間 5,106 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 82 ms
15,264 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 167 ms
15,080 KB
testcase_04 AC 174 ms
15,264 KB
testcase_05 AC 147 ms
15,196 KB
testcase_06 AC 121 ms
15,148 KB
testcase_07 WA -
testcase_08 AC 159 ms
15,304 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 215 ms
15,324 KB
testcase_12 WA -
testcase_13 AC 85 ms
15,024 KB
testcase_14 AC 82 ms
15,068 KB
testcase_15 AC 82 ms
15,132 KB
testcase_16 AC 82 ms
15,252 KB
testcase_17 WA -
testcase_18 AC 82 ms
15,024 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 AC 84 ms
15,272 KB
testcase_22 AC 82 ms
15,228 KB
testcase_23 AC 82 ms
15,304 KB
testcase_24 WA -
testcase_25 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

N = gets.to_i
G = Array.new(2){Array.new(2,0)}
N.times do
  x,y = gets.split.map(&:to_i)
  G[x % 2][y % 2] += 1
end
puts G.flatten.map{|v| (v + 1) / 2 }.sum.odd? ? "Alice" : "Bob"
0