結果

問題 No.5 数字のブロック
ユーザー tailstails
提出日時 2019-07-25 15:55:36
言語 Bash
(Bash 5.1.16)
結果
AC  
実行時間 1,161 ms / 5,000 ms
コード長 88 bytes
コンパイル時間 49 ms
コンパイル使用メモリ 5,332 KB
実行使用メモリ 5,028 KB
最終ジャッジ日時 2023-09-14 23:54:25
合計ジャッジ時間 9,885 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,500 KB
testcase_01 AC 3 ms
4,380 KB
testcase_02 AC 2 ms
4,380 KB
testcase_03 AC 530 ms
4,380 KB
testcase_04 AC 155 ms
4,380 KB
testcase_05 AC 619 ms
4,720 KB
testcase_06 AC 268 ms
4,380 KB
testcase_07 AC 368 ms
4,380 KB
testcase_08 AC 276 ms
4,380 KB
testcase_09 AC 112 ms
4,376 KB
testcase_10 AC 475 ms
4,764 KB
testcase_11 AC 156 ms
4,376 KB
testcase_12 AC 499 ms
4,496 KB
testcase_13 AC 431 ms
4,524 KB
testcase_14 AC 237 ms
4,380 KB
testcase_15 AC 9 ms
4,376 KB
testcase_16 AC 585 ms
4,692 KB
testcase_17 AC 870 ms
4,884 KB
testcase_18 AC 555 ms
4,892 KB
testcase_19 AC 1,161 ms
5,028 KB
testcase_20 AC 35 ms
4,380 KB
testcase_21 AC 2 ms
4,380 KB
testcase_22 AC 3 ms
4,376 KB
testcase_23 AC 2 ms
4,380 KB
testcase_24 AC 13 ms
4,376 KB
testcase_25 AC 204 ms
4,380 KB
testcase_26 AC 6 ms
4,376 KB
testcase_27 AC 11 ms
4,380 KB
testcase_28 AC 82 ms
4,376 KB
testcase_29 AC 151 ms
4,376 KB
testcase_30 AC 77 ms
4,380 KB
testcase_31 AC 68 ms
4,376 KB
testcase_32 AC 53 ms
4,376 KB
testcase_33 AC 8 ms
4,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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