結果

問題 No.99 ジャンピング駒
ユーザー irisAshirisAsh
提出日時 2017-09-02 14:45:08
言語 JavaScript
(node v21.7.1)
結果
AC  
実行時間 142 ms / 5,000 ms
コード長 211 bytes
コンパイル時間 35 ms
コンパイル使用メモリ 5,376 KB
実行使用メモリ 54,016 KB
最終ジャッジ日時 2024-04-21 01:59:07
合計ジャッジ時間 1,468 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 142 ms
52,092 KB
testcase_01 AC 134 ms
52,476 KB
testcase_02 AC 137 ms
52,220 KB
testcase_03 AC 135 ms
52,092 KB
testcase_04 AC 137 ms
54,016 KB
testcase_05 AC 129 ms
51,708 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

let i = require('fs').readFileSync('/dev/stdin', 'utf8').split('\n')
let a = i[1].split(' ').map((e) => parseInt(e)).filter((e) => e % 2 == 0).length
let b = parseInt(i[0]) - a
console.log(a > b ? a - b : b - a)
0