結果

問題 No.99 ジャンピング駒
ユーザー toshiro_yanagitoshiro_yanagi
提出日時 2018-06-09 18:48:36
言語 Nim
(2.0.2)
結果
AC  
実行時間 31 ms / 5,000 ms
コード長 170 bytes
コンパイル時間 3,843 ms
コンパイル使用メモリ 68,708 KB
実行使用メモリ 12,504 KB
最終ジャッジ日時 2023-09-13 02:18:46
合計ジャッジ時間 4,918 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 31 ms
12,504 KB
testcase_01 AC 30 ms
12,360 KB
testcase_02 AC 30 ms
12,380 KB
testcase_03 AC 31 ms
12,496 KB
testcase_04 AC 30 ms
12,416 KB
testcase_05 AC 30 ms
12,408 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import strutils, sequtils, tables
let N, X = stdin.readLine.split.map parseInt
var dic = initCountTable[int]()
for x in X: dic.inc x.abs mod 2
echo (dic[0] - dic[1]).abs
0