提出 #76547121
ソースコード 拡げる
import * as fs from "fs";
const input = fs.readFileSync(0, "utf8").trim().split(/\s+/);
let idx = 0;
const ni = () => Number(input[idx++]);
const N = ni();
const S = input[1].split("-");
const max = (a: number, b: number) => Math.max(a, b);
let ans = 0;
if(input[1].includes("-") && input[1].includes("o")){
for (let dango of S) {
ans = max(ans, dango.length);}
}
// 出力
console.log(ans);
提出情報
| 提出日時 | |
|---|---|
| 問題 | E - Dango |
| ユーザ | manami123 |
| 言語 | TypeScript 5.9 (tsc 5.9.2 (Node.js 22.19.0)) |
| 得点 | 0 |
| コード長 | 420 Byte |
| 結果 | WA |
| 実行時間 | 34 ms |
| メモリ | 54160 KiB |
コンパイルエラー
ジャッジ結果
| セット名 | Sample | All | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| 得点 / 配点 | 0 / 0 | 0 / 300 | ||||||||
| 結果 |
|
|
| セット名 | テストケース |
|---|---|
| Sample | 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt |
| All | 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt, 01_small_03.txt, 01_small_04.txt, 01_small_05.txt, 01_small_06.txt, 01_small_07.txt, 02_random_08.txt, 02_random_09.txt, 02_random_10.txt, 02_random_11.txt, 02_random_12.txt, 02_random_13.txt, 02_random_14.txt, 02_random_15.txt, 02_random_16.txt, 03_handmade_17.txt, 03_handmade_18.txt, 03_handmade_19.txt, 03_handmade_20.txt, 03_handmade_21.txt, 03_handmade_22.txt, 03_handmade_23.txt, 03_handmade_24.txt, 03_handmade_25.txt, 03_handmade_26.txt, 03_handmade_27.txt, 03_handmade_28.txt |
| ケース名 | 結果 | 実行時間 | メモリ |
|---|---|---|---|
| 00_sample_00.txt | AC | 24 ms | 41628 KiB |
| 00_sample_01.txt | WA | 23 ms | 41848 KiB |
| 00_sample_02.txt | AC | 22 ms | 41640 KiB |
| 01_small_03.txt | WA | 22 ms | 41720 KiB |
| 01_small_04.txt | WA | 22 ms | 41636 KiB |
| 01_small_05.txt | AC | 23 ms | 41636 KiB |
| 01_small_06.txt | AC | 23 ms | 41740 KiB |
| 01_small_07.txt | WA | 22 ms | 41616 KiB |
| 02_random_08.txt | AC | 34 ms | 52476 KiB |
| 02_random_09.txt | AC | 28 ms | 50108 KiB |
| 02_random_10.txt | AC | 34 ms | 54160 KiB |
| 02_random_11.txt | AC | 27 ms | 49180 KiB |
| 02_random_12.txt | AC | 25 ms | 48076 KiB |
| 02_random_13.txt | AC | 30 ms | 50312 KiB |
| 02_random_14.txt | AC | 24 ms | 41808 KiB |
| 02_random_15.txt | AC | 26 ms | 47780 KiB |
| 02_random_16.txt | AC | 31 ms | 51420 KiB |
| 03_handmade_17.txt | WA | 23 ms | 41976 KiB |
| 03_handmade_18.txt | WA | 24 ms | 42092 KiB |
| 03_handmade_19.txt | AC | 23 ms | 41864 KiB |
| 03_handmade_20.txt | AC | 29 ms | 50404 KiB |
| 03_handmade_21.txt | WA | 23 ms | 41860 KiB |
| 03_handmade_22.txt | WA | 27 ms | 44444 KiB |
| 03_handmade_23.txt | AC | 24 ms | 41956 KiB |
| 03_handmade_24.txt | AC | 33 ms | 52292 KiB |
| 03_handmade_25.txt | AC | 32 ms | 52408 KiB |
| 03_handmade_26.txt | AC | 27 ms | 48268 KiB |
| 03_handmade_27.txt | AC | 27 ms | 49096 KiB |
| 03_handmade_28.txt | AC | 29 ms | 50332 KiB |