結果

問題 No.601 Midpoint Erase
ユーザー char134217728char134217728
提出日時 2017-12-12 03:56:41
言語 Ruby
(3.3.0)
結果
AC  
実行時間 209 ms / 2,000 ms
コード長 139 bytes
コンパイル時間 398 ms
コンパイル使用メモリ 11,144 KB
実行使用メモリ 15,404 KB
最終ジャッジ日時 2023-08-24 18:49:55
合計ジャッジ時間 4,945 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 79 ms
15,128 KB
testcase_01 AC 79 ms
15,304 KB
testcase_02 AC 79 ms
15,224 KB
testcase_03 AC 161 ms
15,284 KB
testcase_04 AC 171 ms
15,072 KB
testcase_05 AC 144 ms
15,140 KB
testcase_06 AC 115 ms
15,144 KB
testcase_07 AC 168 ms
15,280 KB
testcase_08 AC 154 ms
15,168 KB
testcase_09 AC 171 ms
15,088 KB
testcase_10 AC 99 ms
15,404 KB
testcase_11 AC 209 ms
15,140 KB
testcase_12 AC 137 ms
15,256 KB
testcase_13 AC 79 ms
15,140 KB
testcase_14 AC 77 ms
15,240 KB
testcase_15 AC 78 ms
15,152 KB
testcase_16 AC 77 ms
15,244 KB
testcase_17 AC 77 ms
15,196 KB
testcase_18 AC 77 ms
15,192 KB
testcase_19 AC 77 ms
15,172 KB
testcase_20 AC 77 ms
15,088 KB
testcase_21 AC 77 ms
15,032 KB
testcase_22 AC 77 ms
15,160 KB
testcase_23 AC 77 ms
15,208 KB
testcase_24 AC 77 ms
15,068 KB
testcase_25 AC 77 ms
15,032 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

c=[[0,0],[0,0]]
gets.to_i.times do
  a,b = gets.split.map &:to_i
  c[a%2][b%2]+=1
end
puts [:Bob,:Alice][c.map{|a|a.map{|b|b/2}.sum}.sum%2]
0