結果
| 問題 | No.2738 CPC To F |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-04-20 15:14:59 |
| 言語 | TypeScript (6.0.2) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 298 bytes |
| 記録 | |
| コンパイル時間 | 4,400 ms |
| コンパイル使用メモリ | 346,916 KB |
| 実行使用メモリ | 66,856 KB |
| 最終ジャッジ日時 | 2026-06-05 06:58:08 |
| 合計ジャッジ時間 | 8,102 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_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);