結果

問題 No.380 悪の台本
ユーザー TksiTksi
提出日時 2019-03-04 01:03:22
言語 JavaScript
(node v21.7.1)
結果
WA  
実行時間 -
コード長 468 bytes
コンパイル時間 74 ms
コンパイル使用メモリ 6,816 KB
実行使用メモリ 50,496 KB
最終ジャッジ日時 2024-04-21 02:30:02
合計ジャッジ時間 1,955 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
39,808 KB
testcase_01 AC 77 ms
39,680 KB
testcase_02 AC 69 ms
39,552 KB
testcase_03 AC 68 ms
39,552 KB
testcase_04 AC 118 ms
45,952 KB
testcase_05 AC 307 ms
50,044 KB
testcase_06 AC 296 ms
50,496 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 154 ms
47,872 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

const input = require('fs').readFileSync('/dev/stdin', 'utf8');
const re = {
  digi: /nyo[!-\/,:-@,\[-`,{-~]{0,3}$/ig,
  petit: /nyu[!-\/,:-@,\[-`,{-~]{0,3}$/ig,
  rabi: /[a-z,1-9]/ig,
  gema: /gema[!-\/,:-@,\[-`,{-~]{0,3}$/ig,
  piyo: /pyo[!-\/,:-@,\[-`,{-~]{0,3}$/ig
}
for (const v of input.trim().split('\n').map(v => v.split(' '))) {
  console.log(v.slice(1, v.length).join ``.match(re[v[0]]) &&
    v.length > 1 && re[v[0]] ?
    'CORRECT (maybe)' : 'WRONG!');
}
0