結果

問題 No.601 Midpoint Erase
ユーザー n_knuun_knuu
提出日時 2017-12-01 01:57:44
言語 Nim
(2.0.0)
結果
CE  
(最新)
AC  
(最初)
実行時間 -
コード長 718 bytes
コンパイル時間 867 ms
コンパイル使用メモリ 57,524 KB
最終ジャッジ日時 2023-09-12 15:31:20
合計ジャッジ時間 2,399 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ(β)
コンパイルエラー時のメッセージ・ソースコードは、提出者また管理者しか表示できないようにしております。(リジャッジ後のコンパイルエラーは公開されます)
ただし、clay言語の場合は開発者のデバッグのため、公開されます。

コンパイルメッセージ
/home/judge/data/code/Main.nim(2, 45) Warning: Use the new 'sugar' module instead; future is deprecated [Deprecated]
/home/judge/data/code/Main.nim(2, 59) Error: cannot open file: queues

ソースコード

diff #

# import sequtils, strutils, strscans, algorithm, math, future, sets, queues, tables # for yukicoder (0.17.1)
import sequtils, strutils, algorithm, math, future, sets, queues, tables # for AtCoder (0.13.0)
template getLine: string = stdin.readLine
template getInteger: int = getLine.parseInt
template getBiggestInteger: int64 = getLine.parseBiggestInt
template getIntSeq: seq[int] = getLine.split.map(parseInt)
template getBigIntSeq: seq[int64] = getLine.split.map(parseBiggestInt)

when isMainModule:
  let N = getInteger
  var cnt = @[@[0, 0], @[0, 0]]
  for _ in 0..<N:
    let tmp = getIntSeq
    cnt[tmp[0] mod 2][tmp[1] mod 2].inc
  echo(if cnt.mapIt(it.mapIt(it div 2).sum).sum mod 2 == 1: "Alice" else: "Bob")
0