結果

問題 No.99 ジャンピング駒
ユーザー irisAshirisAsh
提出日時 2017-09-02 14:45:08
言語 JavaScript
(node v21.7.1)
結果
AC  
実行時間 147 ms / 5,000 ms
コード長 211 bytes
コンパイル時間 155 ms
コンパイル使用メモリ 5,460 KB
実行使用メモリ 56,272 KB
最終ジャッジ日時 2023-08-03 02:22:11
合計ジャッジ時間 1,890 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 145 ms
54,764 KB
testcase_01 AC 145 ms
54,908 KB
testcase_02 AC 144 ms
54,988 KB
testcase_03 AC 147 ms
54,348 KB
testcase_04 AC 146 ms
56,272 KB
testcase_05 AC 141 ms
54,264 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