結果

問題 No.99 ジャンピング駒
ユーザー toshiro_yanagitoshiro_yanagi
提出日時 2018-06-09 19:07:24
言語 Nim
(2.0.2)
結果
AC  
実行時間 33 ms / 5,000 ms
コード長 148 bytes
コンパイル時間 2,934 ms
コンパイル使用メモリ 68,788 KB
実行使用メモリ 14,080 KB
最終ジャッジ日時 2023-09-13 02:19:12
合計ジャッジ時間 3,772 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 33 ms
14,080 KB
testcase_01 AC 33 ms
14,056 KB
testcase_02 AC 28 ms
12,412 KB
testcase_03 AC 28 ms
12,336 KB
testcase_04 AC 28 ms
12,332 KB
testcase_05 AC 29 ms
12,408 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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