結果
| 問題 | No.601 Midpoint Erase | 
| コンテスト | |
| ユーザー |  n_knuu | 
| 提出日時 | 2017-12-01 01:57:44 | 
| 言語 | Nim (2.2.0) | 
| 結果 | 
                                CE
                                 
                            (最新) 
                                AC
                                 
                            (最初) | 
| 実行時間 | - | 
| コード長 | 718 bytes | 
| コンパイル時間 | 1,057 ms | 
| コンパイル使用メモリ | 66,820 KB | 
| 最終ジャッジ日時 | 2024-11-14 20:17:30 | 
| 合計ジャッジ時間 | 1,486 ms | 
| ジャッジサーバーID (参考情報) | judge1 / judge5 | 
(要ログイン)
コンパイルエラー時のメッセージ・ソースコードは、提出者また管理者しか表示できないようにしております。(リジャッジ後のコンパイルエラーは公開されます)
ただし、clay言語の場合は開発者のデバッグのため、公開されます。
            
            
            
            
            ただし、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
ソースコード
# 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")
            
            
            
        