結果
問題 |
No.932 解法破綻!高橋君
|
ユーザー |
|
提出日時 | 2019-12-02 00:23:18 |
言語 | JavaScript (node v23.5.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 411 bytes |
コンパイル時間 | 31 ms |
コンパイル使用メモリ | 6,688 KB |
実行使用メモリ | 43,152 KB |
最終ジャッジ日時 | 2024-10-13 01:28:55 |
合計ジャッジ時間 | 2,094 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 15 WA * 5 |
ソースコード
class Answer { constructor(input) { this.S = input; } 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();