結果

問題 No.5 数字のブロック
ユーザー tailstails
提出日時 2019-07-25 16:02:36
言語 Bash
(Bash 5.1.16)
結果
AC  
実行時間 1,224 ms / 5,000 ms
コード長 87 bytes
コンパイル時間 112 ms
コンパイル使用メモリ 5,340 KB
実行使用メモリ 4,948 KB
最終ジャッジ日時 2023-09-14 23:57:12
合計ジャッジ時間 10,147 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,380 KB
testcase_01 AC 3 ms
4,376 KB
testcase_02 AC 2 ms
4,380 KB
testcase_03 AC 540 ms
4,376 KB
testcase_04 AC 167 ms
4,376 KB
testcase_05 AC 680 ms
4,680 KB
testcase_06 AC 285 ms
4,376 KB
testcase_07 AC 382 ms
4,376 KB
testcase_08 AC 308 ms
4,376 KB
testcase_09 AC 120 ms
4,376 KB
testcase_10 AC 497 ms
4,804 KB
testcase_11 AC 175 ms
4,376 KB
testcase_12 AC 542 ms
4,384 KB
testcase_13 AC 452 ms
4,656 KB
testcase_14 AC 237 ms
4,376 KB
testcase_15 AC 10 ms
4,376 KB
testcase_16 AC 626 ms
4,552 KB
testcase_17 AC 948 ms
4,948 KB
testcase_18 AC 609 ms
4,752 KB
testcase_19 AC 1,224 ms
4,804 KB
testcase_20 AC 35 ms
4,376 KB
testcase_21 AC 2 ms
4,380 KB
testcase_22 AC 2 ms
4,380 KB
testcase_23 AC 2 ms
4,376 KB
testcase_24 AC 14 ms
4,376 KB
testcase_25 AC 207 ms
4,380 KB
testcase_26 AC 7 ms
4,380 KB
testcase_27 AC 12 ms
4,380 KB
testcase_28 AC 81 ms
4,380 KB
testcase_29 AC 163 ms
4,376 KB
testcase_30 AC 83 ms
4,376 KB
testcase_31 AC 67 ms
4,376 KB
testcase_32 AC 53 ms
4,376 KB
testcase_33 AC 8 ms
4,380 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

read -dx l n w
w=($w)
for((;j<=l;i<n?++c[w[i++]]:c[j]--?a+=j,d+=a<=l:++j)){ :;}
echo $d
0