結果

問題 No.24 数当てゲーム
ユーザー irisAshirisAsh
提出日時 2017-08-10 00:23:53
言語 JavaScript
(node v21.7.1)
結果
WA  
実行時間 -
コード長 357 bytes
コンパイル時間 31 ms
コンパイル使用メモリ 6,688 KB
実行使用メモリ 39,552 KB
最終ジャッジ日時 2024-04-21 01:51:04
合計ジャッジ時間 1,298 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 67 ms
39,296 KB
testcase_01 AC 65 ms
39,424 KB
testcase_02 AC 64 ms
39,168 KB
testcase_03 AC 64 ms
39,296 KB
testcase_04 AC 65 ms
39,296 KB
testcase_05 WA -
testcase_06 AC 65 ms
39,424 KB
testcase_07 AC 66 ms
39,552 KB
testcase_08 AC 70 ms
39,424 KB
testcase_09 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

let i = require('fs').readFileSync('/dev/stdin', 'utf8').split('\n').slice(0, -1)
let a = Array.from(new Array(9)).map((e,i) => i+1)
for (let x=1; x<=i[0]; x++) {
  let l = i[x].split(' ')
  let f = l.pop()
  l = l.map((e) => e-0)
  if (f === 'NO') a = a.filter((e) => l.indexOf(e) === -1)
  else a = a.filter((e) => l.indexOf(e) !== -1)
}
console.log(a[0])
0