結果

問題 No.380 悪の台本
ユーザー TksiTksi
提出日時 2019-03-04 00:38:36
言語 JavaScript
(node v21.7.1)
結果
WA  
実行時間 -
コード長 373 bytes
コンパイル時間 105 ms
コンパイル使用メモリ 6,940 KB
実行使用メモリ 49,212 KB
最終ジャッジ日時 2024-04-21 02:29:52
合計ジャッジ時間 2,052 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

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