結果

問題 No.932 解法破綻!高橋君
ユーザー はとばねぇ
提出日時 2019-12-02 00:36:52
言語 JavaScript
(node v23.5.0)
結果
AC  
実行時間 84 ms / 2,000 ms
コード長 419 bytes
コンパイル時間 30 ms
コンパイル使用メモリ 6,692 KB
実行使用メモリ 42,780 KB
最終ジャッジ日時 2024-10-13 01:28:57
合計ジャッジ時間 2,077 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

class Answer {
  constructor(input) {
    this.S = input.trim();
  }

  main() {
    let a = this.S.match(/AC/g);
    if(a) {
      let b = 'AC,'.repeat(a.length).slice(0, -1);
      let ans = (this.S === b) ? 'Done!' : 'Failed...' ;
      this.dest(ans);
    }else {
      this.dest('Failed...');
    }
  }

  dest(ans) {
    console.log(ans);
  }
}
new Answer(require('fs').readFileSync('/dev/stdin', 'utf8')).main();
0