結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,376 KB
testcase_01 AC 3 ms
4,376 KB
testcase_02 AC 2 ms
4,380 KB
testcase_03 AC 542 ms
4,380 KB
testcase_04 AC 163 ms
4,376 KB
testcase_05 AC 692 ms
4,600 KB
testcase_06 AC 281 ms
4,376 KB
testcase_07 AC 384 ms
4,380 KB
testcase_08 AC 302 ms
4,380 KB
testcase_09 AC 117 ms
4,376 KB
testcase_10 AC 487 ms
4,804 KB
testcase_11 AC 171 ms
4,376 KB
testcase_12 AC 533 ms
4,388 KB
testcase_13 AC 442 ms
4,664 KB
testcase_14 AC 236 ms
4,380 KB
testcase_15 AC 9 ms
4,380 KB
testcase_16 AC 612 ms
4,620 KB
testcase_17 AC 926 ms
4,836 KB
testcase_18 AC 591 ms
4,812 KB
testcase_19 AC 1,218 ms
4,948 KB
testcase_20 AC 33 ms
4,384 KB
testcase_21 AC 2 ms
4,376 KB
testcase_22 AC 2 ms
4,376 KB
testcase_23 AC 2 ms
4,376 KB
testcase_24 AC 13 ms
4,380 KB
testcase_25 AC 212 ms
4,380 KB
testcase_26 AC 7 ms
4,376 KB
testcase_27 AC 11 ms
4,376 KB
testcase_28 AC 79 ms
4,376 KB
testcase_29 AC 158 ms
4,380 KB
testcase_30 AC 81 ms
4,380 KB
testcase_31 AC 64 ms
4,380 KB
testcase_32 AC 51 ms
4,376 KB
testcase_33 AC 8 ms
4,380 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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