結果
| 問題 | No.2738 CPC To F |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-04-20 15:14:59 |
| 言語 | TypeScript(Node) (7.0.2 + ACL) |
| 結果 |
WA
不安定
|
| 実行時間 | - |
| コード長 | 298 bytes |
| 記録 | |
| コンパイル時間 | 950 ms |
| コンパイル使用メモリ | 193,816 KB |
| 実行使用メモリ | 68,672 KB |
| 最終ジャッジ日時 | 2026-10-10 00:21:23 |
| 合計ジャッジ時間 | 3,446 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge4_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 2 |
| other | WA * 22 |
ソースコード
declare var require: any;
let lines: string[] = require("fs").readFileSync("/dev/stdin", "utf8").split("\n");
let S = lines[1];
S = S.replace(/CPCTCPC/g, 'CPCTF');
let ans = 0;
while (true) {
const index = S.indexOf('CPCTF');
if (index === -1) break;
S = S.slice(index + 5);
}
console.log(ans);