結果
| 問題 |
No.1005 BOT対策
|
| コンテスト | |
| ユーザー |
study0826
|
| 提出日時 | 2020-10-04 12:45:45 |
| 言語 | TypeScript (5.7.2) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 286 bytes |
| コンパイル時間 | 8,720 ms |
| コンパイル使用メモリ | 229,832 KB |
| 実行使用メモリ | 41,452 KB |
| 最終ジャッジ日時 | 2024-12-31 16:22:03 |
| 合計ジャッジ時間 | 10,734 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 27 |
ソースコード
function issue(input: string) {
const text: string[] = input.split('\r\n');
const a: number = ( text[0].match( new RegExp( text[1], "g" ) ) || [] ).length ;
if (a >= 0) {
console.log(a);
} else {
console.log(-1);
}
}
issue(require('fs').readFileSync('/dev/stdin', 'utf8'));
study0826